From 441f76a6e64d51415d904a1277561c0acaebd9e4 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:15:42 +0000 Subject: [PATCH] fix(nc-gui): added calendar injection --- packages/nc-gui/components/smartsheet/Gallery.vue | 2 ++ packages/nc-gui/components/smartsheet/Kanban.vue | 3 +++ packages/nc-gui/components/smartsheet/grid/index.vue | 3 +++ 3 files changed, 8 insertions(+) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index 3f148288e5..8a12204ae9 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -6,6 +6,7 @@ import { FieldsInj, IsFormInj, IsGalleryInj, + IsCalendarInj, IsGridInj, MetaInj, NavigateDir, @@ -57,6 +58,7 @@ const { provide(IsFormInj, ref(false)) provide(IsGalleryInj, ref(true)) provide(IsGridInj, ref(false)) +provide(IsCalendarInj, ref(false)) provide(RowHeightInj, ref(1 as const)) diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index b983deeb4f..d0b16a1454 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -7,6 +7,7 @@ import { IsFormInj, IsGalleryInj, IsGridInj, + IsCalendarInj, IsKanbanInj, IsLockedInj, IsPublicInj, @@ -104,6 +105,8 @@ provide(IsGridInj, ref(false)) provide(IsKanbanInj, ref(true)) +provide(IsCalendarInj, ref(false)) + const hasEditPermission = computed(() => isUIAllowed('dataEdit')) const fields = inject(FieldsInj, ref([])) diff --git a/packages/nc-gui/components/smartsheet/grid/index.vue b/packages/nc-gui/components/smartsheet/grid/index.vue index e08136f78b..42a6e45016 100644 --- a/packages/nc-gui/components/smartsheet/grid/index.vue +++ b/packages/nc-gui/components/smartsheet/grid/index.vue @@ -6,6 +6,7 @@ import { ActiveViewInj, FieldsInj, IsFormInj, + IsCalendarInj, IsGalleryInj, IsGridInj, MetaInj, @@ -95,6 +96,8 @@ provide(IsGalleryInj, ref(false)) provide(IsGridInj, ref(true)) +provide(IsCalendarInj, ref(false)) + provide(RowHeightInj, rowHeight) // reload table data reload hook as fallback to rowdatareload