From b1369654826be3a39aded29522bcee5040d54a18 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Fri, 22 Sep 2023 22:09:11 +0530 Subject: [PATCH 1/5] fix: hide fields --- packages/nc-gui/components/smartsheet/Gallery.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index d485545f74..05c04cdbf5 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -73,7 +73,7 @@ const { getPossibleAttachmentSrc } = useAttachment() const fieldsWithoutDisplay = computed(() => fields.value.filter((f) => !isPrimary(f))) -const displayField = computed(() => meta.value?.columns?.find((c) => c.pv) ?? null) +const displayField = computed(() => meta.value?.columns?.find((c) => c.pv && fields.value.includes(c)) ?? null) const coverImageColumn: any = computed(() => meta.value?.columnsById @@ -299,7 +299,7 @@ watch( -

+

Date: Sat, 23 Sep 2023 10:08:48 +0530 Subject: [PATCH 2/5] fix: shared gallery view --- .../nc-gui/components/smartsheet/Gallery.vue | 4 ---- .../smartsheet/toolbar/FieldsMenu.vue | 2 +- .../composables/useExpandedFormStore.ts | 8 ++++++-- .../src/services/public-datas.service.ts | 20 +++++++++---------- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index 05c04cdbf5..eafcf0aa61 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -124,10 +124,6 @@ const attachments = (record: any): Attachment[] => { } const expandForm = (row: RowType, state?: Record) => { - if (isPublic.value) { - return - } - const rowId = extractPkFromRow(row.row, meta.value!.columns!) if (rowId) { diff --git a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue index 811cd95de1..0f0fc1942b 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue @@ -316,7 +316,7 @@ useMenuCloseOnEsc(open)