diff --git a/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-header/index.js b/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-header/index.js index a9ecce90..87ae433c 100644 --- a/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-header/index.js +++ b/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-header/index.js @@ -12,8 +12,9 @@ export default { }, }, render(h) { + // const logo = this.item.icon || 'MoreHorizontalIcon' const span = h('span', {}, this.item.header) - const icon = h('feather-icon', { props: { icon: 'MoreHorizontalIcon', size: '18' } }) + const icon = h('feather-icon', { props: { icon: this.item.icon || 'MoreHorizontalIcon', size: '18' } }) if (canViewVerticalNavMenuHeader(this.item)) { return h('li', { class: 'navigation-header text-truncate' }, [span, icon]) } diff --git a/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-items/VerticalNavMenuItems.vue b/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-items/VerticalNavMenuItems.vue index 9ce87f62..a538f22e 100644 --- a/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-items/VerticalNavMenuItems.vue +++ b/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-items/VerticalNavMenuItems.vue @@ -51,14 +51,11 @@ export default { } } }) - const current = { - title: selected.chain_name, + + return [{ + header: `${selected.chain_name} Dashboard`, icon: selected.logo, - route: { name: selected.chain_name, params: { chain: selected.chain_name } }, - } - current.children = children - // this.items.unshift(current) - return [{ header: 'dashboard' }, current].concat(this.items) + }].concat(children).concat(this.items) }, }, }