Skip to content

Commit aeadf36

Browse files
committed
inject placement and tidy
1 parent 6522cd6 commit aeadf36

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/components/cylc/workspace/Toolbar.vue

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
153153
<!-- workflow status message -->
154154
<span class="status-msg text-body-2">
155155
{{ statusMessage }}
156-
</span>
157-
158-
<!-- workflow version if different from UIS cylc-flow version -->
159-
<span class="version-pop text-body-2">
160-
{{ versionPopup }}
156+
<!-- workflow Cylc version popup on differ with UIS version -->
157+
<!-- nested within status-msg for style inheritance -->
158+
<span v-if="currentWorkflow.node.cylcVersion !== uisFlowVersion">
159+
{{ versionPopup }}
160+
</span>
161161
</span>
162162

163163
<v-spacer class="mx-0" />
@@ -318,11 +318,13 @@ export default {
318318
setup () {
319319
const { showNavBtn } = useNavBtn()
320320
const { toggleDrawer } = useDrawer()
321+
const uisFlowVersion = inject('versionInfo').value?.['cylc-flow']
321322
return {
322323
eventBus,
323324
showNavBtn,
324325
toggleDrawer,
325-
toolbarHeight
326+
toolbarHeight,
327+
uisFlowVersion
326328
}
327329
},
328330
@@ -401,10 +403,7 @@ export default {
401403
},
402404
versionPopup () {
403405
let ret = ''
404-
if (
405-
this.currentWorkflow.node.cylcVersion &&
406-
this.currentWorkflow.node.cylcVersion !== inject('versionInfo').value?.['cylc-flow']
407-
) {
406+
if (this.currentWorkflow.node.cylcVersion) {
408407
ret += ` • Cylc ${this.currentWorkflow.node.cylcVersion}`
409408
}
410409
return ret

0 commit comments

Comments
 (0)