From 0fb20ce4f3cc8cfa430463367bc111f05686dd33 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 23 Aug 2022 10:31:32 +0800 Subject: [PATCH] add tags and single chain mode --- .../VerticalNavMenuItems.vue | 2 +- src/navigation/vertical/index.js | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) 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 a9ac5c87..9ce87f62 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 @@ -58,7 +58,7 @@ export default { } current.children = children // this.items.unshift(current) - return [{ header: 'dashboard' }, current, { header: 'ecosystem' }].concat(this.items) + return [{ header: 'dashboard' }, current].concat(this.items) }, }, } diff --git a/src/navigation/vertical/index.js b/src/navigation/vertical/index.js index 6b31a3c4..41f69c49 100644 --- a/src/navigation/vertical/index.js +++ b/src/navigation/vertical/index.js @@ -13,11 +13,15 @@ function processMenu() { blockchains.push(menu) }) - chainMenus.push({ - title: 'blockchains', - children: blockchains, - icon: 'https://ping.pub/logo.svg', - }) + if (blockchains.length > 1) { + chainMenus.push({ header: 'ecosystem' }) + chainMenus.push({ + title: 'blockchains', + children: blockchains, + tag: `${blockchains.length}`, + icon: 'https://ping.pub/logo.svg', + }) + } chainMenus.push({ header: 'LINKS' }) if (isTestnet()) { chainMenus.push({