From f0b181baca115e1d9b51c9dc11d055d633491873 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sun, 31 Oct 2021 11:39:55 +0530 Subject: [PATCH] feat: enable attachment expansion in shared view Signed-off-by: Pranav C --- .../project/spreadsheet/components/editableCell.vue | 3 ++- .../components/editableCell/editableAttachmentCell.vue | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/editableCell.vue b/packages/nc-gui/components/project/spreadsheet/components/editableCell.vue index 8d39585d7e..914e18fe9f 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editableCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editableCell.vue @@ -14,6 +14,7 @@ :db-alias="dbAlias" :meta="meta" :column="column" + :is-public-grid="isPublic && !isForm" v-on="$listeners" /> @@ -107,7 +108,7 @@ {{ hint }} -
+
diff --git a/packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue b/packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue index cbc57753ae..97c0b748d1 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue @@ -57,7 +57,7 @@
-
+
mdi-loading mdi-spin @@ -82,7 +82,7 @@
- + mdi-link-variant @@ -103,7 +103,7 @@ height="200px" style="position: relative" > - + mdi-close-circle @@ -229,7 +229,7 @@ import { isImage } from '@/components/project/spreadsheet/helpers/imageExt' export default { name: 'EditableAttachmentCell', components: { draggable }, - props: ['dbAlias', 'value', 'active', 'isLocked', 'meta', 'column'], + props: ['dbAlias', 'value', 'active', 'isLocked', 'meta', 'column', 'isPublicGrid'], data: () => ({ carousel: null, uploading: false, @@ -287,6 +287,7 @@ export default { } }, async onFileSelection() { + if (this.isPublicGrid) { return } if (!this.$refs.file.files || !this.$refs.file.files.length) { return }