diff --git a/src/components/cylc/commandMenu/Menu.vue b/src/components/cylc/commandMenu/Menu.vue index a3e532ce9..8f8a9a849 100644 --- a/src/components/cylc/commandMenu/Menu.vue +++ b/src/components/cylc/commandMenu/Menu.vue @@ -126,6 +126,8 @@ import { mapGetters, mapState } from 'vuex' import WorkflowState from '@/model/WorkflowState.model' import { eventBus } from '@/services/eventBus' import CopyBtn from '@/components/core/CopyBtn.vue' +import { upperFirst } from 'lodash-es' +import { formatFlowNums } from '@/utils/tasks' export default { name: 'CommandMenu', @@ -199,14 +201,14 @@ export default { // can happen briefly when switching workflows return } - let ret = this.node.type + let ret = upperFirst(this.node.type) if (this.node.type !== 'cycle') { // NOTE: cycle point nodes don't have associated node data at present - ret += ' - ' + ret += ' • ' if (this.node.type === 'workflow') { - ret += this.node.node.statusMsg || this.node.node.status || 'state unknown' + ret += upperFirst(this.node.node.statusMsg || this.node.node.status || 'state unknown') } else { - ret += this.node.node.state || 'state unknown' + ret += upperFirst(this.node.node.state || 'state unknown') if (this.node.node.isHeld) { ret += ' (held)' } @@ -216,6 +218,9 @@ export default { if (this.node.node.isRunahead) { ret += ' (runahead)' } + if (this.node.node.flowNums) { + ret += ` • Flows: ${formatFlowNums(this.node.node.flowNums)}` + } } } return ret diff --git a/src/components/cylc/common/FlowNumsChip.vue b/src/components/cylc/common/FlowNumsChip.vue new file mode 100644 index 000000000..38fb09b9b --- /dev/null +++ b/src/components/cylc/common/FlowNumsChip.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/components/cylc/table/Table.vue b/src/components/cylc/table/Table.vue index c6390c10b..fd2c6413b 100644 --- a/src/components/cylc/table/Table.vue +++ b/src/components/cylc/table/Table.vue @@ -28,7 +28,11 @@ along with this program. If not, see . v-model:items-per-page="itemsPerPage" > - + +