Skip to content

Commit

Permalink
fix(editor): Active toggle incorrectly displayed as inactive in execu…
Browse files Browse the repository at this point in the history
…tion view (#9778)
  • Loading branch information
ivov authored Jun 17, 2024
1 parent 292bbb3 commit 551fb6d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/editor-ui/src/components/MainHeader/MainHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,21 @@ export default defineComponent({
beforeMount() {
this.pushConnection.initialize();
},
mounted() {
async mounted() {
this.dirtyState = this.uiStore.stateIsDirty;
this.syncTabsWithRoute(this.$route);
if (this.workflowsStore.workflow.id === PLACEHOLDER_EMPTY_WORKFLOW_ID) {
const workflowId = this.$route.params.name as string;
const workflow = await this.workflowsStore.fetchWorkflow(workflowId);
this.workflowsStore.setWorkflowId(workflowId);
if (workflow.active) {
this.workflowsStore.setWorkflowActive(workflowId);
this.workflowsStore.setActive(workflow.active);
}
}
},
beforeUnmount() {
this.pushConnection.terminate();
Expand Down

0 comments on commit 551fb6d

Please sign in to comment.