Use router for list timeline link

This commit is contained in:
Sol Fisher Romanoff 2022-06-16 13:09:41 +03:00
parent 023fcb506f
commit ab7001ed20
Signed by untrusted user who does not match committer: nbsp
GPG Key ID: 9D3F2B64F2341B62
2 changed files with 3 additions and 8 deletions

View File

@ -10,12 +10,7 @@ library.add(
const ListCard = {
props: [
'list'
],
methods: {
listLink (id) {
return '/lists/' + id
}
}
]
}
export default ListCard

View File

@ -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