@@ -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" />
@@ -207,7 +214,8 @@ import {
207
214
mdiPlusBoxMultiple ,
208
215
mdiStop ,
209
216
mdiViewList ,
210
- mdiAccount
217
+ mdiAccount ,
218
+ mdiChevronDown ,
211
219
} from ' @mdi/js'
212
220
import { startCase } from ' lodash'
213
221
import { until } from ' @/utils'
@@ -221,6 +229,7 @@ import subscriptionComponentMixin from '@/mixins/subscriptionComponent'
221
229
import SubscriptionQuery from ' @/model/SubscriptionQuery.model'
222
230
import gql from ' graphql-tag'
223
231
import { eventBus } from ' @/services/eventBus'
232
+ import { upperFirst } from ' lodash-es'
224
233
225
234
const QUERY = gql (`
226
235
subscription Workflow ($workflowId: ID) {
@@ -242,6 +251,7 @@ fragment WorkflowData on Workflow {
242
251
status
243
252
statusMsg
244
253
nEdgeDistance
254
+ cylcVersion
245
255
}
246
256
247
257
fragment AddedDelta on Added {
@@ -341,8 +351,12 @@ export default {
341
351
this .currentWorkflow .node .status === WorkflowState .STOPPED .name
342
352
)
343
353
},
344
- statusMsg () {
345
- return this .currentWorkflow .node .statusMsg || ' '
354
+ statusAndVersion () {
355
+ let ret = upperFirst (this .currentWorkflow .node .statusMsg || ' ' )
356
+ if (this .currentWorkflow .node .cylcVersion ) {
357
+ ret += ` • Cylc ${ this .currentWorkflow .node .cylcVersion } `
358
+ }
359
+ return ret
346
360
},
347
361
enabled () {
348
362
// object holding the states of controls that are supposed to be enabled
@@ -456,7 +470,8 @@ export default {
456
470
run: mdiPlay,
457
471
stop: mdiStop,
458
472
mdiCog,
459
- mdiAccount
473
+ mdiAccount,
474
+ mdiChevronDown,
460
475
},
461
476
}
462
477
< / script>
0 commit comments