feat: reduce dependency on router and move everything to route props instead

This commit is contained in:
kolaente 2022-02-06 20:11:13 +01:00
parent 1e4ef96150
commit 84f177c80e
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
7 changed files with 50 additions and 29 deletions

View file

@ -139,8 +139,8 @@ watch(
emitChanged()
},
)
watch(() => from, inputChanged)
watch(() => to, inputChanged)
watch(() => from.value, inputChanged)
watch(() => to.value, inputChanged)
function setDateRange(range: string[] | null) {
if (range === null) {
@ -152,7 +152,6 @@ function setDateRange(range: string[] | null) {
from.value = range[0]
to.value = range[1]
}
const customRangeActive = computed<boolean>(() => {