mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Make sure to redirect to blank canvas after personalisation modal (#5980)
* fix(editor): Make sure to redirect to blank canvas after personalization modal * Linting fix
This commit is contained in:
parent
b13b7d73e7
commit
7c474d3c92
|
@ -122,7 +122,8 @@ import {
|
||||||
REPORTED_SOURCE_EVENT,
|
REPORTED_SOURCE_EVENT,
|
||||||
REPORTED_SOURCE_OTHER,
|
REPORTED_SOURCE_OTHER,
|
||||||
REPORTED_SOURCE_OTHER_KEY,
|
REPORTED_SOURCE_OTHER_KEY,
|
||||||
} from '../constants';
|
VIEWS,
|
||||||
|
} from '@/constants';
|
||||||
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
||||||
import { showMessage } from '@/mixins/showMessage';
|
import { showMessage } from '@/mixins/showMessage';
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
|
@ -606,6 +607,11 @@ export default mixins(showMessage, workflowHelpers).extend({
|
||||||
methods: {
|
methods: {
|
||||||
closeDialog() {
|
closeDialog() {
|
||||||
this.modalBus.emit('close');
|
this.modalBus.emit('close');
|
||||||
|
// In case the redirect to canvas for new users didn't happen
|
||||||
|
// we try again after closing the modal
|
||||||
|
if (this.$route.name !== VIEWS.NEW_WORKFLOW) {
|
||||||
|
this.$router.replace({ name: VIEWS.NEW_WORKFLOW });
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onSave() {
|
onSave() {
|
||||||
this.formBus.emit('submit');
|
this.formBus.emit('submit');
|
||||||
|
|
Loading…
Reference in a new issue