feat: add date math for filters #1342

Merged
konrad merged 88 commits from feature/date-math into main 2022-03-28 17:30:43 +00:00
1 changed files with 10 additions and 2 deletions
Showing only changes of commit d6dd1fc0e3 - Show all commits

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')
konrad marked this conversation as resolved Outdated

This should be marked as a Hack because it's something that shouldn't happen.
When I tried to change the auth these days I tried to fix this, but got tangled.
We should try to solve this in the future because else we will just add more and more hacks =)

This should be marked as a Hack because it's something that shouldn't happen. When I tried to change the auth these days I tried to fix this, but got tangled. We should try to solve this in the future because else we will just add more and more hacks =)

Done.

Done.
}
}