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