mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
fix(editor): SettingsSidebar should disconnect from push when navigating away (#6025)
This commit is contained in:
committed by
GitHub
parent
4037b3aeed
commit
41660d9e28
@@ -24,7 +24,6 @@
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { ABOUT_MODAL_KEY, VERSIONS_MODAL_KEY, VIEWS } from '@/constants';
|
||||
import { userHelpers } from '@/mixins/userHelpers';
|
||||
import { pushConnection } from '@/mixins/pushConnection';
|
||||
import { IFakeDoor } from '@/Interface';
|
||||
import { IMenuItem } from 'n8n-design-system';
|
||||
import { BaseTextKey } from '@/plugins/i18n';
|
||||
@@ -33,7 +32,7 @@ import { useUIStore } from '@/stores/ui';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { useRootStore } from '@/stores/n8nRootStore';
|
||||
|
||||
export default mixins(userHelpers, pushConnection).extend({
|
||||
export default mixins(userHelpers).extend({
|
||||
name: 'SettingsSidebar',
|
||||
computed: {
|
||||
...mapStores(useRootStore, useSettingsStore, useUIStore),
|
||||
@@ -134,9 +133,6 @@ export default mixins(userHelpers, pushConnection).extend({
|
||||
return menuItems;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.pushConnect();
|
||||
},
|
||||
methods: {
|
||||
canAccessPersonalSettings(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.PERSONAL_SETTINGS);
|
||||
|
||||
Reference in New Issue
Block a user