forked from AkkomaGang/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 = {
|
const ListCard = {
|
||||||
props: [
|
props: [
|
||||||
'list'
|
'list'
|
||||||
],
|
]
|
||||||
methods: {
|
|
||||||
listLink (id) {
|
|
||||||
return '/lists/' + id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ListCard
|
export default ListCard
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="list-card">
|
<div class="list-card">
|
||||||
<router-link
|
<router-link
|
||||||
:to="listLink(list.id)"
|
:to="{ name: 'list-timeline', params: { id: list.id } }"
|
||||||
class="list-name"
|
class="list-name"
|
||||||
>
|
>
|
||||||
{{ list.title }}
|
{{ list.title }}
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
:to="listLink(list.id) + '/edit'"
|
:to="{ name: 'list-edit', params: { id: list.id } }"
|
||||||
class="button-list-edit"
|
class="button-list-edit"
|
||||||
>
|
>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
|
|
Loading…
Reference in a new issue