Add task filter for reminders (#347)
Add task filter for reminders Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/347 Co-Authored-By: konrad <konrad@kola-entertainments.de> Co-Committed-By: konrad <konrad@kola-entertainments.de>
This commit is contained in:
parent
533d8f1236
commit
69a9f867b4
1 changed files with 19 additions and 0 deletions
|
@ -70,6 +70,18 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<label class="label">Reminders</label>
|
||||||
|
<div class="control">
|
||||||
|
<flat-pickr
|
||||||
|
:config="flatPickerConfig"
|
||||||
|
@on-close="setReminderFilter"
|
||||||
|
class="input"
|
||||||
|
placeholder="Reminder Date Range"
|
||||||
|
v-model="filters.reminders"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Percent Done</label>
|
<label class="label">Percent Done</label>
|
||||||
<div class="control single-value-control">
|
<div class="control single-value-control">
|
||||||
|
@ -128,6 +140,7 @@ export default {
|
||||||
endDate: '',
|
endDate: '',
|
||||||
percentDone: 0,
|
percentDone: 0,
|
||||||
usePercentDone: false,
|
usePercentDone: false,
|
||||||
|
reminders: '',
|
||||||
},
|
},
|
||||||
flatPickerConfig: {
|
flatPickerConfig: {
|
||||||
altFormat: 'j M Y H:i',
|
altFormat: 'j M Y H:i',
|
||||||
|
@ -333,6 +346,9 @@ export default {
|
||||||
setPercentDoneFilter() {
|
setPercentDoneFilter() {
|
||||||
this.setSingleValueFilter('percent_done', 'percentDone', 'usePercentDone')
|
this.setSingleValueFilter('percent_done', 'percentDone', 'usePercentDone')
|
||||||
},
|
},
|
||||||
|
setReminderFilter() {
|
||||||
|
this.setDateFilter('reminders', 'reminders')
|
||||||
|
},
|
||||||
prepareDueDate() {
|
prepareDueDate() {
|
||||||
this.prepareDate('due_date', 'dueDate')
|
this.prepareDate('due_date', 'dueDate')
|
||||||
},
|
},
|
||||||
|
@ -348,6 +364,9 @@ export default {
|
||||||
preparePercentDone() {
|
preparePercentDone() {
|
||||||
this.prepareSingleValue('percent_done', 'percentDone', 'usePercentDone', true)
|
this.prepareSingleValue('percent_done', 'percentDone', 'usePercentDone', true)
|
||||||
},
|
},
|
||||||
|
prepareReminders() {
|
||||||
|
this.prepareDate('reminders', 'reminders')
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue