feat: provide listId prop via router

This commit is contained in:
Dominik Pschenitschni 2021-12-10 15:29:28 +01:00
parent 6d62ca1ada
commit 5916a44724
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
10 changed files with 263 additions and 233 deletions

View file

@ -475,6 +475,14 @@ export default {
description,
heading,
},
props: {
taskId: {
type: Number,
required: true,
},
},
data() {
return {
taskService: new TaskService(),
@ -525,10 +533,6 @@ export default {
},
},
computed: {
taskId() {
const {id} = this.$route.params
return id === undefined ? id : Number(id)
},
currentList() {
return this.$store.state[CURRENT_LIST]
},