mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44: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"
|
||||
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({
|
||||
|
|
Loading…
Reference in a new issue