mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
add presets for date rage picker in reporting
This commit is contained in:
committed by
Constantin Graf
parent
36cdae523f
commit
7e5374d5b1
@@ -37,10 +37,12 @@ import { useTagsStore } from '@/utils/useTags';
|
||||
import { formatCents } from '@/packages/ui/src/utils/money';
|
||||
import { useStorage } from '@vueuse/core';
|
||||
|
||||
const startDate = ref<string>(
|
||||
const startDate = useStorage<string>(
|
||||
'reporting-start-date',
|
||||
getLocalizedDayJs(getDayJsInstance()().format()).subtract(14, 'd').format()
|
||||
);
|
||||
const endDate = ref<string>(
|
||||
const endDate = useStorage<string>(
|
||||
'reporting-end-date',
|
||||
getLocalizedDayJs(getDayJsInstance()().format()).format()
|
||||
);
|
||||
const selectedTags = ref<string[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user