From 728930c77f480de96c62eded4c145a2453084e29 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sun, 28 Aug 2022 21:59:20 +0300 Subject: [PATCH] feat: hide cover field from card Signed-off-by: mertmit --- packages/nc-gui-v2/components/smartsheet/Gallery.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Gallery.vue b/packages/nc-gui-v2/components/smartsheet/Gallery.vue index fc8ab9e6bf..75b249c440 100644 --- a/packages/nc-gui-v2/components/smartsheet/Gallery.vue +++ b/packages/nc-gui-v2/components/smartsheet/Gallery.vue @@ -49,6 +49,8 @@ provide(ReadonlyInj, !isUIAllowed('xcDatatableEditable')) const fields = inject(FieldsInj, ref([])) +const fieldsWithoutCover = computed(() => fields.value.filter((f) => f.id !== galleryData.value?.fk_cover_image_col_id)) + const coverImageColumn: any = $( computed(() => meta?.value.columnsById @@ -102,7 +104,7 @@ openNewRecordFormHook?.on(async () => { -
+