Skip to content
Snippets Groups Projects
Unverified Commit 0cd49dec authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix router for nav elements without a link

parent 4e9a65c3
No related branches found
No related tags found
No related merge requests found
......@@ -147,17 +147,17 @@
// This is used to decide which outter element type to use
// li or router-link
navElement (item) {
if (item.href) {
if (item.router) {
return {
is: 'li'
};
is: 'router-link',
tag: 'li',
to: item.router,
exact: true
}
}
return {
is: 'router-link',
tag: 'li',
to: item.router,
exact: true
};
is: 'li'
}
}
},
mounted () {
......
......@@ -22,8 +22,7 @@
id: 'account' + account.id,
key: 'account' + account.id,
text: account.name,
bullet: account.bullet, // TODO
router: {}
bullet: account.bullet // TODO
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment