mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Add workflow name and ID to settings (#2369)
* ⚡ Add workflow name and ID to settings * 🔨 Refactor to use mapGetters
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user