mirror of
https://github.com/nasa/openmct.git
synced 2025-04-09 12:21:25 +00:00
style: add mission status button
This commit is contained in:
parent
56e56eade4
commit
40be740cf9
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user