Skip to content

Commit 3755b6c

Browse files
committed
move to info icon hover
1 parent 10d51be commit 3755b6c

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/components/cylc/workspace/Toolbar.vue

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4646
<!-- control bar elements displayed only when there is a current workflow in the store -->
4747
<template v-if="currentWorkflow">
4848
<div class="c-workflow-controls d-flex align-center flex-shrink-0">
49+
<v-tooltip v-if="isRunning">
50+
<template v-slot:activator="{ props }">
51+
<v-icon :icon="$options.icons.info" v-bind="props" />
52+
</template>
53+
<dl>
54+
<dt>Owner:</dt>
55+
<dd>{{ currentWorkflow.node.owner }}</dd>
56+
<dt>Host:</dt>
57+
<dd>{{ currentWorkflow.node.host }}</dd>
58+
<dt>Cylc version:</dt>
59+
<dd>{{ currentWorkflow.node.cylcVersion}}</dd>
60+
</dl>
61+
</v-tooltip>
62+
4963
<WarningIcon
5064
:workflow="currentWorkflow"
51-
style="font-size: 120%; padding-right: 0.3em;"
65+
style="font-size: 120%; padding-left: 0.3em; padding-right: 0.3em;"
5266
/>
5367

5468
<v-btn
@@ -233,6 +247,7 @@ import {
233247
mdiAccount,
234248
mdiChevronDown,
235249
mdiArrowULeftTop,
250+
mdiInformationOutline,
236251
} from '@mdi/js'
237252
import { startCase } from 'lodash'
238253
import { until } from '@/utils/reactivity'
@@ -377,9 +392,6 @@ export default {
377392
},
378393
statusAndVersion () {
379394
let ret = upperFirst(this.currentWorkflow.node.statusMsg || '')
380-
if (this.currentWorkflow.node.host && this.currentWorkflow.node.owner) {
381-
ret += `${this.currentWorkflow.node.owner}@${this.currentWorkflow.node.host}`
382-
}
383395
if (this.currentWorkflow.node.cylcVersion) {
384396
ret += ` • Cylc ${this.currentWorkflow.node.cylcVersion}`
385397
}
@@ -498,6 +510,7 @@ export default {
498510
icons: {
499511
add: mdiPlusBoxMultiple,
500512
hold: mdiPause,
513+
info: mdiInformationOutline,
501514
list: mdiViewList,
502515
menu: mdiMicrosoftXboxControllerMenu,
503516
run: mdiPlay,

0 commit comments

Comments
 (0)