forked from LaconicNetwork/cosmos-explorer
Breadcrumb navigation links
Make it possible to use `route.params` inside the breadcrumb. Use it to link to `/:chain/staking` and `/:chain/blocks`.
This commit is contained in:
+6
-6
@@ -249,16 +249,16 @@ const router = new VueRouter({
|
||||
component: () => import('@/views/StakingValidator.vue'),
|
||||
meta: {
|
||||
pageTitle: 'Staking Validator',
|
||||
breadcrumb: [
|
||||
breadcrumb: route => ([
|
||||
{
|
||||
text: 'Staking',
|
||||
active: true,
|
||||
to: `/${route.params.chain}/staking`,
|
||||
},
|
||||
{
|
||||
text: 'Validator',
|
||||
active: true,
|
||||
},
|
||||
],
|
||||
]),
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -317,16 +317,16 @@ const router = new VueRouter({
|
||||
component: () => import('@/views/Block.vue'),
|
||||
meta: {
|
||||
pageTitle: 'Block',
|
||||
breadcrumb: [
|
||||
breadcrumb: route => ([
|
||||
{
|
||||
text: 'Blocks',
|
||||
active: true,
|
||||
to: `/${route.params.chain}/blocks`,
|
||||
},
|
||||
{
|
||||
text: 'Block',
|
||||
active: true,
|
||||
},
|
||||
],
|
||||
]),
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user