Only show undone tasks on task overview page

This commit is contained in:
kolaente 2020-05-09 14:51:37 +02:00
parent bdb2dba49c
commit be10ba0f62
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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)