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
// 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)
})
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({