fix: add 'Today' button to quickly reset calendar date

This commit is contained in:
Shariq Ansari 2025-08-27 22:06:53 +05:30
parent 0386df262e
commit b6a15ab96e

View File

@ -74,9 +74,19 @@
}
"
variant="ghost"
class="h-4 w-4"
icon="chevron-left"
/>
<Button
:label="__('Today')"
variant="ghost"
@click="
() => {
const today = dayjs().format('YYYY-MM-DD')
setCalendarDate(today)
selectedMonthDate = today
}
"
/>
<Button
@click="
() => {
@ -85,7 +95,6 @@
}
"
variant="ghost"
class="h-4 w-4"
icon="chevron-right"
/>