diff --git a/src/components/list_card/list_card.js b/src/components/list_card/list_card.js index 6546796c..4668db0e 100644 --- a/src/components/list_card/list_card.js +++ b/src/components/list_card/list_card.js @@ -10,12 +10,7 @@ library.add( const ListCard = { props: [ 'list' - ], - methods: { - listLink (id) { - return '/lists/' + id - } - } + ] } export default ListCard diff --git a/src/components/list_card/list_card.vue b/src/components/list_card/list_card.vue index 752a7eb5..7d0df69c 100644 --- a/src/components/list_card/list_card.vue +++ b/src/components/list_card/list_card.vue @@ -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