fix(editor): Fix workflow back button navigation (#4546)
* 🐛 Fix back button navigation from recetly saved workflow * 🐛 Fix coming-soon routes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div :class="$style.container">
|
||||
<n8n-menu :items="sidebarMenuItems" @select="handleSelect">
|
||||
<template #header>
|
||||
<div :class="$style.returnButton" @click="onReturn">
|
||||
<div :class="$style.returnButton" @click="$emit('return')">
|
||||
<i class="mr-xs">
|
||||
<font-awesome-icon icon="arrow-left" />
|
||||
</i>
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
<script lang="ts">
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { mapGetters } from 'vuex';
|
||||
import { ABOUT_MODAL_KEY, VERSIONS_MODAL_KEY, VIEWS } from '@/constants';
|
||||
import { userHelpers } from './mixins/userHelpers';
|
||||
import { pushConnection } from "@/components/mixins/pushConnection";
|
||||
@@ -123,9 +122,6 @@ export default mixins(
|
||||
onVersionClick() {
|
||||
this.uiStore.openModal(ABOUT_MODAL_KEY);
|
||||
},
|
||||
onReturn() {
|
||||
this.$router.push({name: VIEWS.HOMEPAGE});
|
||||
},
|
||||
openUpdatesPanel() {
|
||||
this.uiStore.openModal(VERSIONS_MODAL_KEY);
|
||||
},
|
||||
|
||||
@@ -831,7 +831,7 @@ export const workflowHelpers = mixins(
|
||||
}
|
||||
|
||||
if (redirect) {
|
||||
this.$router.push({
|
||||
this.$router.replace({
|
||||
name: VIEWS.WORKFLOW,
|
||||
params: { name: workflowData.id as string, action: 'workflowSave' },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user