From be10ba0f6299bce7c215cc666443a1ca774b066b Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 9 May 2020 14:51:37 +0200 Subject: [PATCH] Only show undone tasks on task overview page --- src/components/tasks/ShowTasks.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/tasks/ShowTasks.vue b/src/components/tasks/ShowTasks.vue index 6cf9a5c7..62dcfdf8 100644 --- a/src/components/tasks/ShowTasks.vue +++ b/src/components/tasks/ShowTasks.vue @@ -46,7 +46,12 @@ }, methods: { loadPendingTasks() { - let params = {sort_by: ['due_date_unix', 'id'], order_by: ['desc', 'desc']} + let params = { + sort_by: ['due_date_unix', 'id'], + order_by: ['desc', 'desc'], + filter_by: ['done'], + filter_value: [false], + } if (!this.showAll) { params.startdate = Math.round(+ this.startDate / 1000) params.enddate = Math.round(+ this.endDate / 1000)