From db738fc824ef695af6b522a86091a9594d7e9e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 27 Oct 2021 01:54:03 +0200 Subject: [PATCH] :zap: Add workflow name and ID to settings (#2369) * :zap: Add workflow name and ID to settings * :hammer: Refactor to use mapGetters --- packages/editor-ui/src/components/WorkflowSettings.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/WorkflowSettings.vue b/packages/editor-ui/src/components/WorkflowSettings.vue index 77e929b177..04c7d218dc 100644 --- a/packages/editor-ui/src/components/WorkflowSettings.vue +++ b/packages/editor-ui/src/components/WorkflowSettings.vue @@ -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({