@@ -85,13 +85,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
85
85
</div >
86
86
87
87
<!-- n-window selector -->
88
- <v-chip
88
+ <v-btn
89
89
:disabled =" isStopped"
90
- link
90
+ variant =" tonal"
91
+ rounded
91
92
size =" small"
92
93
data-cy =" n-win-selector"
93
94
>
94
95
N={{ nWindow }}
96
+ <template #append >
97
+ <v-icon
98
+ :icon =" $options.icons.mdiChevronDown"
99
+ class =" mx-n1"
100
+ />
101
+ </template >
95
102
<v-menu
96
103
activator =" parent"
97
104
:close-on-content-click =" false"
@@ -122,11 +129,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
122
129
</v-card-text >
123
130
</v-card >
124
131
</v-menu >
125
- </v-chip >
132
+ </v-btn >
126
133
127
134
<!-- workflow status message -->
128
- <span class =" status-msg text-md-body-1 text- body-2" >
129
- {{ statusMsg }}
135
+ <span class =" status-msg text-body-2" >
136
+ {{ statusAndVersion }}
130
137
</span >
131
138
132
139
<v-spacer class =" mx-0" />
@@ -219,7 +226,8 @@ import {
219
226
mdiStop ,
220
227
mdiViewList ,
221
228
mdiAccount ,
222
- mdiArrowULeftTop
229
+ mdiChevronDown ,
230
+ mdiArrowULeftTop ,
223
231
} from ' @mdi/js'
224
232
import { startCase } from ' lodash'
225
233
import { until } from ' @/utils/reactivity'
@@ -233,6 +241,7 @@ import subscriptionComponentMixin from '@/mixins/subscriptionComponent'
233
241
import SubscriptionQuery from ' @/model/SubscriptionQuery.model'
234
242
import gql from ' graphql-tag'
235
243
import { eventBus } from ' @/services/eventBus'
244
+ import { upperFirst } from ' lodash-es'
236
245
237
246
const QUERY = gql (`
238
247
subscription Workflow ($workflowId: ID) {
@@ -254,6 +263,7 @@ fragment WorkflowData on Workflow {
254
263
status
255
264
statusMsg
256
265
nEdgeDistance
266
+ cylcVersion
257
267
}
258
268
259
269
fragment AddedDelta on Added {
@@ -353,8 +363,12 @@ export default {
353
363
this .currentWorkflow .node .status === WorkflowState .STOPPED .name
354
364
)
355
365
},
356
- statusMsg () {
357
- return this .currentWorkflow .node .statusMsg || ' '
366
+ statusAndVersion () {
367
+ let ret = upperFirst (this .currentWorkflow .node .statusMsg || ' ' )
368
+ if (this .currentWorkflow .node .cylcVersion ) {
369
+ ret += ` • Cylc ${ this .currentWorkflow .node .cylcVersion } `
370
+ }
371
+ return ret
358
372
},
359
373
enabled () {
360
374
// object holding the states of controls that are supposed to be enabled
@@ -469,6 +483,7 @@ export default {
469
483
stop: mdiStop,
470
484
mdiCog,
471
485
mdiAccount,
486
+ mdiChevronDown,
472
487
mdiArrowULeftTop,
473
488
},
474
489
}
0 commit comments