make custom router-link for nav-entry to un-nest the interactive elements
This commit is contained in:
parent
8b25febe36
commit
8ecb67230c
4 changed files with 100 additions and 68 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { mapState } from 'vuex'
|
||||
import { USERNAME_ROUTES } from 'src/components/navigation/navigation.js'
|
||||
import OptionalRouterLink from 'src/components/optional_router_link/optional_router_link.vue'
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { faThumbtack } from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
|
|
@ -7,6 +8,9 @@ library.add(faThumbtack)
|
|||
|
||||
const NavigationEntry = {
|
||||
props: ['item', 'showPin'],
|
||||
components: {
|
||||
OptionalRouterLink
|
||||
},
|
||||
methods: {
|
||||
isPinned (value) {
|
||||
return this.pinnedItems.has(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue