Fix updating a task with repeat after interval from list view (Fixes #75)
This commit is contained in:
parent
cafb960c8d
commit
701a46ecd4
1 changed files with 2 additions and 4 deletions
|
@ -82,14 +82,12 @@
|
|||
let updateFunc = () => {
|
||||
// We get the task, update the 'done' property and then push it to the api.
|
||||
this.task.done = e.target.checked
|
||||
let task = new TaskModel(this.task)
|
||||
task.done = e.target.checked
|
||||
this.taskService.update(task)
|
||||
this.taskService.update(this.task)
|
||||
.then(t => {
|
||||
this.task = t
|
||||
this.$emit('taskUpdated', t)
|
||||
this.success(
|
||||
{message: 'The task was successfully ' + (task.done ? '' : 'un-') + 'marked as done.'},
|
||||
{message: 'The task was successfully ' + (this.task.done ? '' : 'un-') + 'marked as done.'},
|
||||
this,
|
||||
[{
|
||||
title: 'Undo',
|
||||
|
|
Loading…
Reference in a new issue