improve navigation and rewards

This commit is contained in:
liangping 2022-03-05 10:58:09 +08:00
parent 9340191314
commit e77a890798
3 changed files with 16 additions and 12 deletions

View File

@ -72,7 +72,7 @@
@ps-scroll-y="evt => { shallShadowBottom = evt.srcElement.scrollTop > 0 }" @ps-scroll-y="evt => { shallShadowBottom = evt.srcElement.scrollTop > 0 }"
> >
<vertical-nav-menu-items <vertical-nav-menu-items
:items="navMenuItems" :items.sync="leftMenu"
class="navigation navigation-main" class="navigation navigation-main"
/> />
</vue-perfect-scrollbar> </vue-perfect-scrollbar>
@ -154,6 +154,16 @@ export default {
appLogoImage, appLogoImage,
} }
}, },
computed: {
leftMenu() {
const preload = []
const { selected } = this.$store.state.chains
const current = navMenuItems.find(x => (x.title === selected.chain_name))
preload.push({ header: 'current' })
preload.push(current)
return preload.concat(navMenuItems.filter(x => x.title !== selected.chain_name))
},
},
} }
</script> </script>

View File

@ -42,11 +42,6 @@ const modules = [
function processMenu() { function processMenu() {
const chainMenus = [ const chainMenus = [
// {
// title: 'Home',
// route: 'home',
// icon: 'HomeIcon',
// },
{ {
header: 'blockchains', header: 'blockchains',
}, },

View File

@ -28,6 +28,8 @@
rounded rounded
size="42" size="42"
variant="light-success" variant="light-success"
text="R"
title="Rewards"
/> />
</b-media-aside> </b-media-aside>
<b-media-body> <b-media-body>
@ -54,12 +56,9 @@
rounded rounded
size="42" size="42"
variant="light-primary" variant="light-primary"
> text="C"
<feather-icon title="Commission"
size="18" />
icon="ServerIcon"
/>
</b-avatar>
</b-media-aside> </b-media-aside>
<b-media-body> <b-media-body>
<h6 class="transaction-title"> <h6 class="transaction-title">