Skip to content
Snippets Groups Projects
Commit 0e4ebd09 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

refactor: use simple date instead of datetime filter for timeslots

parent cb18c3b4
No related branches found
No related tags found
No related merge requests found
<template>
<div class="tw-whitespace-nowrap">
<FormGroup v-slot="attrs" :label="t('showTimeslots.start')" class="tw-mb-0" inline>
<input v-model="startDate" type="datetime-local" v-bind="attrs" step="60" class="tw-w-fit" />
<FormGroup
v-slot="attrs"
:label="t('showTimeslots.start')"
class="tw-mb-0 tw-place-self-stretch"
inline
>
<input v-model="startDate" type="date" v-bind="attrs" class="tw-h-full tw-w-fit" />
</FormGroup>
<RadioGroup
......
......@@ -2,7 +2,7 @@
<ASection :title="t('showTimeslots.title')">
<template #header>
<TimeSlotFilter
v-model:start-date="formattedLocalStartTime"
v-model:start-date="formattedLocalStartDate"
v-model:direction="direction"
class="tw-flex tw-gap-3 tw-items-center tw-ml-auto"
/>
......@@ -99,7 +99,7 @@ const direction = ref<'future' | 'past'>('future')
const limit = useStorage('aura:timeslotList:timeslotsPerPage', DEFAULT_TIMESLOT_LIMIT)
const startTime = ref(roundToNearestMinutes(new Date()))
const formattedStartTime = useFormattedISODate(startTime)
const formattedLocalStartTime = useFormattedISODate(startTime, now, { stripOffset: true })
const formattedLocalStartDate = useFormattedISODate(startTime, now, { representation: 'date' })
const tableEl = ref<HTMLTableElement>()
const hasPageBeenModified = ref(false)
const { result } = usePaginatedList(timeslotStore.listIsolated, page, limit, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment