From e77a8907986d62e2538921a43534007a6a99befc Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Sat, 5 Mar 2022 10:58:09 +0800
Subject: [PATCH] improve navigation and rewards
---
.../components/vertical-nav-menu/VerticalNavMenu.vue | 12 +++++++++++-
src/navigation/vertical/index.js | 5 -----
src/views/StakingRewardComponent.vue | 11 +++++------
3 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/@core/layouts/layout-vertical/components/vertical-nav-menu/VerticalNavMenu.vue b/src/@core/layouts/layout-vertical/components/vertical-nav-menu/VerticalNavMenu.vue
index 7eafc562..bad3aa9c 100644
--- a/src/@core/layouts/layout-vertical/components/vertical-nav-menu/VerticalNavMenu.vue
+++ b/src/@core/layouts/layout-vertical/components/vertical-nav-menu/VerticalNavMenu.vue
@@ -72,7 +72,7 @@
@ps-scroll-y="evt => { shallShadowBottom = evt.srcElement.scrollTop > 0 }"
>
@@ -154,6 +154,16 @@ export default {
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))
+ },
+ },
}
diff --git a/src/navigation/vertical/index.js b/src/navigation/vertical/index.js
index c9c90fd5..d53ad4e9 100644
--- a/src/navigation/vertical/index.js
+++ b/src/navigation/vertical/index.js
@@ -42,11 +42,6 @@ const modules = [
function processMenu() {
const chainMenus = [
- // {
- // title: 'Home',
- // route: 'home',
- // icon: 'HomeIcon',
- // },
{
header: 'blockchains',
},
diff --git a/src/views/StakingRewardComponent.vue b/src/views/StakingRewardComponent.vue
index 17645d6f..6ac11107 100644
--- a/src/views/StakingRewardComponent.vue
+++ b/src/views/StakingRewardComponent.vue
@@ -28,6 +28,8 @@
rounded
size="42"
variant="light-success"
+ text="R"
+ title="Rewards"
/>
@@ -54,12 +56,9 @@
rounded
size="42"
variant="light-primary"
- >
-
-
+ text="C"
+ title="Commission"
+ />