feat: increase the default date range

This commit is contained in:
kolaente 2022-07-21 16:19:35 +02:00
parent 3a32501064
commit fb56e890e6
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -77,7 +77,7 @@ const precision = ref('day')
const now = ref(new Date()) const now = ref(new Date())
const defaultFrom = format(new Date((new Date()).setDate(now.value.getDate() - 15)), 'yyyy-LL-dd') const defaultFrom = format(new Date((new Date()).setDate(now.value.getDate() - 15)), 'yyyy-LL-dd')
const defaultTo = format(new Date((new Date()).setDate(now.value.getDate() + 30)), 'yyyy-LL-dd') const defaultTo = format(new Date((new Date()).setDate(now.value.getDate() + 55)), 'yyyy-LL-dd')
const range = ref(`${defaultFrom} to ${defaultTo}`) const range = ref(`${defaultFrom} to ${defaultTo}`)
// TODO: only update once both dates are available (maybe use a watcher + refs instead?) // TODO: only update once both dates are available (maybe use a watcher + refs instead?)