Fix creating a new task on a list when in list view
This commit is contained in:
parent
d6642550bd
commit
a5c0b035e7
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@
|
||||||
name: 'List',
|
name: 'List',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
listId: this.$route.params.id,
|
listId: this.$route.params.listId,
|
||||||
taskService: TaskService,
|
taskService: TaskService,
|
||||||
list: {},
|
list: {},
|
||||||
isTaskEdit: false,
|
isTaskEdit: false,
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
}
|
}
|
||||||
this.showError = false
|
this.showError = false
|
||||||
|
|
||||||
let task = new TaskModel({text: this.newTaskText, listId: this.$route.params.id})
|
let task = new TaskModel({text: this.newTaskText, listId: this.listId})
|
||||||
this.taskService.create(task)
|
this.taskService.create(task)
|
||||||
.then(r => {
|
.then(r => {
|
||||||
this.tasks.push(r)
|
this.tasks.push(r)
|
||||||
|
|
Loading…
Reference in a new issue