Fix updating a task with repeat after interval from list view (Fixes #75)

This commit is contained in:
kolaente 2020-03-26 20:01:05 +01:00
parent cafb960c8d
commit 701a46ecd4
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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',