File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/components/cylc/workspace Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff 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'
238244import { mapState } from ' vuex'
239245import {
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
You can’t perform that action at this time.
0 commit comments