Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2019-10-22 09:14:56 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2019-10-26 14:59:04 +0300
commite59a9e555313f5c7fc0f4301c629b34ba13ca4c8 (patch)
tree5dca50da4edab40113017d60bdffda0f1fef3d32 /src/models
parent54702d48ce35b368c8ef1437dcb281f8675a2d04 (diff)
Add tests for task model complete and status
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org> Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'src/models')
-rw-r--r--src/models/task.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/task.js b/src/models/task.js
index 95ee29c0..d015ace1 100644
--- a/src/models/task.js
+++ b/src/models/task.js
@@ -243,7 +243,7 @@ export default class Task {
this.vtodo.updatePropertyWithValue('percent-complete', complete)
this.updateLastModified()
if (complete < 100) {
- this.completed = null
+ this.completed = false
if (complete === 0) {
this.status = 'NEEDS-ACTION'
} else {