Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/components/cylc/workspace/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{{ statusMessage }}
</span>

<!-- workflow version if different from UIS cylc-flow version -->
<span class="version-pop text-body-2">
{{ versionPopup }}
</span>

<v-spacer class="mx-0" />

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

<script>
import { inject } from 'vue'
import { mapState } from 'vuex'
import {
mdiCog,
Expand Down Expand Up @@ -393,6 +399,16 @@ export default {
statusMessage () {
return upperFirst(this.currentWorkflow.node.statusMsg || '')
},
versionPopup () {
let ret = ''
if (
this.currentWorkflow.node.cylcVersion &&
this.currentWorkflow.node.cylcVersion !== inject('versionInfo').value?.['cylc-flow']
) {
ret += ` • Cylc ${this.currentWorkflow.node.cylcVersion}`
}
return ret
},
enabled () {
// object holding the states of controls that are supposed to be enabled
// NOTE: this is a temporary solution until we are able to subscribe to
Expand Down