mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08: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:
parent
dc642419df
commit
db738fc824
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue