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
Showing only changes of commit 4ac7d6b9df - Show all commits

View File

@ -115,11 +115,6 @@ function emitChanged() {
})
}
function inputChanged() {
flatpickrRange.value = ''
emitChanged()
}
watch(
() => flatpickrRange.value,
(newVal: string | null) => {
@ -139,8 +134,8 @@ watch(
emitChanged()
},
)
watch(() => from.value, inputChanged)
watch(() => to.value, inputChanged)
watch(() => from.value, emitChanged)
watch(() => to.value, emitChanged)
function setDateRange(range: string[] | null) {
if (range === null) {