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 = () => {
|
let updateFunc = () => {
|
||||||
// We get the task, update the 'done' property and then push it to the api.
|
// We get the task, update the 'done' property and then push it to the api.
|
||||||
this.task.done = e.target.checked
|
this.task.done = e.target.checked
|
||||||
let task = new TaskModel(this.task)
|
this.taskService.update(this.task)
|
||||||
task.done = e.target.checked
|
|
||||||
this.taskService.update(task)
|
|
||||||
.then(t => {
|
.then(t => {
|
||||||
this.task = t
|
this.task = t
|
||||||
this.$emit('taskUpdated', t)
|
this.$emit('taskUpdated', t)
|
||||||
this.success(
|
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,
|
this,
|
||||||
[{
|
[{
|
||||||
title: 'Undo',
|
title: 'Undo',
|
||||||
|
|
Loading…
Add table
Reference in a new issue