From 777035a7ad363ed01cedbc2ee9c03117ffbc638c Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Fri, 29 Mar 2024 03:51:38 +0000 Subject: [PATCH] fix(nc-gui): enable calendar. update error handling --- .../dashboard/TreeView/CreateViewBtn.vue | 5 +---- .../smartsheet/calendar/SideMenu.vue | 13 ++++++++++++- .../components/smartsheet/calendar/index.vue | 2 +- .../smartsheet/toolbar/CalendarMode.vue | 4 ++-- .../smartsheet/toolbar/CalendarRange.vue | 18 ++++++++++++------ .../nc-gui/composables/useCalendarViewStore.ts | 10 ++++++---- .../src/services/calendar-datas.service.ts | 8 ++++---- 7 files changed, 38 insertions(+), 22 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue index 781e029eb0..43fa1ef1a5 100644 --- a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue +++ b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue @@ -155,10 +155,7 @@ async function onOpenModal({ - +
diff --git a/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue b/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue index f636a27097..ab47c27c01 100644 --- a/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue +++ b/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue @@ -369,7 +369,7 @@ onUnmounted(() => {
= 1440, + 'h-[calc(100vh-25.1rem)]': activeCalendarView === ('month' as const) || activeCalendarView === ('year' as const) && width >= 1440, + }" + class="flex items-center justify-center h-full" + > + {{ $t('activity.noRange') }} +
diff --git a/packages/nc-gui/components/smartsheet/calendar/index.vue b/packages/nc-gui/components/smartsheet/calendar/index.vue index 8793865ad2..afd0378e6d 100644 --- a/packages/nc-gui/components/smartsheet/calendar/index.vue +++ b/packages/nc-gui/components/smartsheet/calendar/index.vue @@ -282,7 +282,7 @@ const headerText = computed(() => { -