Skip to content

Commit 48c38c9

Browse files
committed
reinstate toolbar cylc version on diff
1 parent 7d94d7c commit 48c38c9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/components/cylc/workspace/Toolbar.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
155155
{{ statusMessage }}
156156
</span>
157157

158+
<!-- workflow version if different from UIS cylc-flow version -->
159+
<span v-if="isRunning" class="version-pop text-body-2">
160+
{{ versionPopup }}
161+
</span>
162+
158163
<v-spacer class="mx-0" />
159164

160165
<v-btn
@@ -235,6 +240,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
235240
</template>
236241

237242
<script>
243+
import { inject } from 'vue'
238244
import { mapState } from 'vuex'
239245
import {
240246
mdiCog,
@@ -365,6 +371,9 @@ export default {
365371
/* isGlobalCallback */ true
366372
)
367373
},
374+
uisFlowVersion () {
375+
return inject('versionInfo').value?.['cylc-flow']
376+
},
368377
currentWorkflow () {
369378
return this.cylcTree.$index[this.workflowId]
370379
},
@@ -393,6 +402,16 @@ export default {
393402
statusMessage () {
394403
return upperFirst(this.currentWorkflow.node.statusMsg || '')
395404
},
405+
versionPopup () {
406+
let ret = ''
407+
if (
408+
this.currentWorkflow.node.cylcVersion &&
409+
this.currentWorkflow.node.cylcVersion !== this.uisFlowVersion
410+
) {
411+
ret += ` • Cylc ${this.currentWorkflow.node.cylcVersion}`
412+
}
413+
return ret
414+
},
396415
enabled () {
397416
// object holding the states of controls that are supposed to be enabled
398417
// NOTE: this is a temporary solution until we are able to subscribe to

0 commit comments

Comments
 (0)