Add workflow name and ID to settings (#2369)

*  Add workflow name and ID to settings

* 🔨 Refactor to use mapGetters
This commit is contained in:
Iván Ovejero 2021-10-27 01:54:03 +02:00 committed by GitHub
parent dc642419df
commit db738fc824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
:name="WORKFLOW_SETTINGS_MODAL_KEY" :name="WORKFLOW_SETTINGS_MODAL_KEY"
width="65%" width="65%"
maxHeight="80%" maxHeight="80%"
title="Workflow Settings" :title="`Settings for ${workflowName} (#${workflowId})`"
:eventBus="modalBus" :eventBus="modalBus"
:scrollable="true" :scrollable="true"
> >
@ -191,6 +191,8 @@ import { WORKFLOW_SETTINGS_MODAL_KEY } from '../constants';
import mixins from 'vue-typed-mixins'; import mixins from 'vue-typed-mixins';
import { mapGetters } from "vuex";
export default mixins( export default mixins(
externalHooks, externalHooks,
genericHelpers, genericHelpers,
@ -235,6 +237,11 @@ export default mixins(
WORKFLOW_SETTINGS_MODAL_KEY, WORKFLOW_SETTINGS_MODAL_KEY,
}; };
}, },
computed: {
...mapGetters(['workflowName', 'workflowId']),
},
async mounted () { async mounted () {
if (this.$route.params.name === undefined) { if (this.$route.params.name === undefined) {
this.$showMessage({ this.$showMessage({