Skip to content

Commit 38ca379

Browse files
committed
reinstate toolbar cylc version on diff
1 parent 7d94d7c commit 38ca379

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/components/cylc/workspace/Toolbar.vue

Lines changed: 16 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 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,
@@ -393,6 +399,16 @@ export default {
393399
statusMessage () {
394400
return upperFirst(this.currentWorkflow.node.statusMsg || '')
395401
},
402+
versionPopup () {
403+
let ret = ''
404+
if (
405+
this.currentWorkflow.node.cylcVersion &&
406+
this.currentWorkflow.node.cylcVersion !== inject('versionInfo').value?.['cylc-flow']
407+
) {
408+
ret += ` • Cylc ${this.currentWorkflow.node.cylcVersion}`
409+
}
410+
return ret
411+
},
396412
enabled () {
397413
// object holding the states of controls that are supposed to be enabled
398414
// NOTE: this is a temporary solution until we are able to subscribe to

0 commit comments

Comments
 (0)