add tags and single chain mode

This commit is contained in:
liangping 2022-08-23 10:31:32 +08:00
parent f7491858e0
commit 0fb20ce4f3
2 changed files with 10 additions and 6 deletions

View File

@ -58,7 +58,7 @@ export default {
} }
current.children = children current.children = children
// this.items.unshift(current) // this.items.unshift(current)
return [{ header: 'dashboard' }, current, { header: 'ecosystem' }].concat(this.items) return [{ header: 'dashboard' }, current].concat(this.items)
}, },
}, },
} }

View File

@ -13,11 +13,15 @@ function processMenu() {
blockchains.push(menu) blockchains.push(menu)
}) })
chainMenus.push({ if (blockchains.length > 1) {
title: 'blockchains', chainMenus.push({ header: 'ecosystem' })
children: blockchains, chainMenus.push({
icon: 'https://ping.pub/logo.svg', title: 'blockchains',
}) children: blockchains,
tag: `${blockchains.length}`,
icon: 'https://ping.pub/logo.svg',
})
}
chainMenus.push({ header: 'LINKS' }) chainMenus.push({ header: 'LINKS' })
if (isTestnet()) { if (isTestnet()) {
chainMenus.push({ chainMenus.push({