style: add mission status button

This commit is contained in:
Mazzella, Jesse D. (ARC-TI)[KBR Wyle Services, LLC] 2024-01-30 11:33:09 -08:00
parent 56e56eade4
commit 40be740cf9
2 changed files with 17 additions and 12 deletions

View File

@ -24,7 +24,7 @@
<div
ref="userIndicatorRef"
class="c-indicator c-indicator--user icon-person"
:class="canSetMissionStatus ? 'c-indicator--clickable' : ''"
:class="canSetMissionStatus ? 'clickable' : ''"
v-bind="$attrs"
@click.stop="togglePopup"
>
@ -33,13 +33,14 @@
<button v-if="availableRoles?.length > 1" @click.stop="promptForRoleSelection">
Change Role
</button>
<button v-if="canSetMissionStatus" @click.stop="togglePopup">Mission Status</button>
</span>
</div>
<Teleport to="body">
<div v-show="isPopupVisible" ref="popupRef" class="c-user-control-panel" :style="popupStyle">
<Suspense>
<template #default>
<MissionStatusPopup v-show="canSetMissionStatus" @dismiss="togglePopup" />
<MissionStatusPopup v-if="canSetMissionStatus" @dismiss="togglePopup" />
</template>
<template #fallback>
<div>Loading...</div>

View File

@ -21,22 +21,24 @@
*****************************************************************************/
.c-indicator {
&:before {
// Indicator icon
color: $colorKey;
}
&:before {
// Indicator icon
color: $colorKey;
}
&--clickable {
&--user {
max-width: max-content;
&.clickable {
cursor: pointer;
max-width: 250px;
@include hover() {
background: $colorIndicatorBgHov;
}
}
}
}
$statusCountWidth: 30px;
$statusCountWidth: 30px;
.c-user-control-panel {
@include menuOuter();
@ -71,7 +73,9 @@
column-gap: $interiorMargin;
text-transform: uppercase;
> * { flex: 0 0 auto; }
> * {
flex: 0 0 auto;
}
[class*='title'] {
flex: 1 1 auto;
@ -175,13 +179,13 @@
text-align: center;
&.--is-go {
$c: #2C7527;
$c: #2c7527;
background: $c;
color: white;
}
&.--is-no-go {
$c: #FBC147;
$c: #fbc147;
background: $bg;
border: 1px solid $c;
color: $c;