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
3 changed files with 4 additions and 2 deletions
Showing only changes of commit 7135288800 - Show all commits

View File

@ -191,7 +191,7 @@ const props = defineProps({
showSelectedOnButton: {
type: Boolean,
default: false,
}
},
})
// FIXME: This seems to always contain the default value - that breaks the picker

View File

@ -20,7 +20,7 @@ const props = defineProps({
hasOverflow: {
type: Boolean,
default: false,
}
},
})
function hidePopup(e) {

View File

@ -98,6 +98,8 @@ export default {
pageTitle() {
let title = ''
// We need to define "key" because it is the first parameter in the array and we need the second
// eslint-disable-next-line no-unused-vars
const predefinedRange = Object.entries(dateRanges).find(([key, value]) => this.dateFrom === value[0] && this.dateTo === value[1])
if (typeof predefinedRange !== 'undefined') {
title = this.$t(`input.datepickerRange.ranges.${predefinedRange[0]}`)