fix: date range

This commit is contained in:
kolaente 2021-12-29 17:22:14 +01:00
parent 729aa7d4cc
commit d6dd1fc0e3
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -1,5 +1,13 @@
<template>
<div class="is-max-width-desktop show-tasks">
<fancycheckbox
@change="setDate"
class="is-pulled-right"
v-if="!showAll"
v-model="showNulls"
>
{{ $t('task.show.noDates') }}
</fancycheckbox>
<h3 class="mb-2">
{{ pageTitle }}
</h3>
@ -157,12 +165,12 @@ export default {
}
params.filter_by.push('due_date')
params.filter_value.push(this.dateFrom)
params.filter_value.push(this.dateTo)
params.filter_comparator.push('less')
if (!this.showOverdue) {
params.filter_by.push('due_date')
params.filter_value.push(this.dateTo)
params.filter_value.push(this.dateFrom)
params.filter_comparator.push('greater')
}
}