forked from srxl/akkoma-fe
Use router for list timeline link
This commit is contained in:
parent
023fcb506f
commit
ab7001ed20
2 changed files with 3 additions and 8 deletions
|
@ -10,12 +10,7 @@ library.add(
|
|||
const ListCard = {
|
||||
props: [
|
||||
'list'
|
||||
],
|
||||
methods: {
|
||||
listLink (id) {
|
||||
return '/lists/' + id
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default ListCard
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<template>
|
||||
<div class="list-card">
|
||||
<router-link
|
||||
:to="listLink(list.id)"
|
||||
:to="{ name: 'list-timeline', params: { id: list.id } }"
|
||||
class="list-name"
|
||||
>
|
||||
{{ list.title }}
|
||||
</router-link>
|
||||
<router-link
|
||||
:to="listLink(list.id) + '/edit'"
|
||||
:to="{ name: 'list-edit', params: { id: list.id } }"
|
||||
class="button-list-edit"
|
||||
>
|
||||
<FAIcon
|
||||
|
|
Loading…
Reference in a new issue