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
No known key found for this signature in database
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