mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): menu UI fixes (no-changelog) (#4316)
* N8N-4964-menu-fixes
* 👌 Addressing PR review comments
This commit is contained in:
committed by
GitHub
parent
a82fd3f33f
commit
51e8f5ff22
@@ -82,6 +82,7 @@ import {
|
||||
} from '@/constants';
|
||||
import { userHelpers } from './mixins/userHelpers';
|
||||
import { debounceHelper } from './mixins/debounce';
|
||||
import Vue from 'vue';
|
||||
|
||||
export default mixins(
|
||||
genericHelpers,
|
||||
@@ -160,7 +161,6 @@ export default mixins(
|
||||
// @ts-ignore
|
||||
label: item.properties ? item.properties.title : '',
|
||||
position: item.position,
|
||||
activateOnRouteNames: [ VIEWS.TEMPLATES ],
|
||||
type: item.properties?.href ? 'link' : 'regular',
|
||||
properties: item.properties,
|
||||
} as IMenuItem,
|
||||
@@ -277,8 +277,7 @@ export default mixins(
|
||||
return [ ...items, ...regularItems ];
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.fullyExpanded = !this.isCollapsed;
|
||||
async mounted() {
|
||||
if (this.$refs.user) {
|
||||
this.$externalHooks().run('mainSidebar.mounted', { userRef: this.$refs.user });
|
||||
}
|
||||
@@ -286,6 +285,8 @@ export default mixins(
|
||||
this.$store.commit('ui/expandSidebarMenu');
|
||||
}
|
||||
this.checkWidthAndAdjustSidebar(window.innerWidth);
|
||||
await Vue.nextTick();
|
||||
this.fullyExpanded = !this.isCollapsed;
|
||||
},
|
||||
created() {
|
||||
window.addEventListener("resize", this.onResize);
|
||||
|
||||
Reference in New Issue
Block a user