fix: add 'Today' button to quickly reset calendar date
This commit is contained in:
parent
0386df262e
commit
b6a15ab96e
@ -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"
|
||||
/>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user