|
|
@ -46,6 +46,7 @@ const { |
|
|
|
loadCalendarData, |
|
|
|
loadCalendarData, |
|
|
|
isCalendarDataLoading, |
|
|
|
isCalendarDataLoading, |
|
|
|
selectedDate, |
|
|
|
selectedDate, |
|
|
|
|
|
|
|
pageDate, |
|
|
|
selectedDateRange, |
|
|
|
selectedDateRange, |
|
|
|
activeCalendarView, |
|
|
|
activeCalendarView, |
|
|
|
paginateCalendarView, |
|
|
|
paginateCalendarView, |
|
|
@ -149,6 +150,23 @@ const headerText = computed(() => { |
|
|
|
<NcButton size="small" type="secondary" @click="paginateCalendarView('next')"> |
|
|
|
<NcButton size="small" type="secondary" @click="paginateCalendarView('next')"> |
|
|
|
<component :is="iconMap.doubleRightArrow" class="h-4 w-4" /> |
|
|
|
<component :is="iconMap.doubleRightArrow" class="h-4 w-4" /> |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
|
|
|
|
<NcButton |
|
|
|
|
|
|
|
v-if="!isMobileMode" |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
type="secondary" |
|
|
|
|
|
|
|
@click=" |
|
|
|
|
|
|
|
() => { |
|
|
|
|
|
|
|
selectedDate = new Date() |
|
|
|
|
|
|
|
pageDate = new Date() |
|
|
|
|
|
|
|
selectedDateRange = { |
|
|
|
|
|
|
|
start: dayjs(new Date()).startOf('week').toDate(), |
|
|
|
|
|
|
|
end: dayjs(new Date()).endOf('week').toDate(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Go to Today |
|
|
|
|
|
|
|
</NcButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<NcButton v-if="!isMobileMode" size="small" type="secondary" @click="showSideMenu = !showSideMenu"> |
|
|
|
<NcButton v-if="!isMobileMode" size="small" type="secondary" @click="showSideMenu = !showSideMenu"> |
|
|
|
<component :is="iconMap.sidebar" class="h-4 w-4 text-gray-700 transition-all" /> |
|
|
|
<component :is="iconMap.sidebar" class="h-4 w-4 text-gray-700 transition-all" /> |
|
|
|