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