From c3b821bf8e0920ef9a877ef468e932348d9316a8 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 9 Aug 2022 15:45:09 +0200 Subject: [PATCH 01/14] chore(gui-v2): fix type issues --- .../components/cell/attachment/utils.ts | 4 +-- .../components/smartsheet/Pagination.vue | 16 ++++++------ .../components/virtual-cell/Lookup.vue | 9 ++++--- .../nc-gui-v2/components/webhook/List.vue | 4 +-- .../[projectType]/[projectId]/index/index.vue | 25 ++++++++++++------- packages/nc-gui-v2/pages/index/index.vue | 11 ++------ 6 files changed, 35 insertions(+), 34 deletions(-) diff --git a/packages/nc-gui-v2/components/cell/attachment/utils.ts b/packages/nc-gui-v2/components/cell/attachment/utils.ts index bbfa6b86e4..ed0aab1982 100644 --- a/packages/nc-gui-v2/components/cell/attachment/utils.ts +++ b/packages/nc-gui-v2/components/cell/attachment/utils.ts @@ -141,7 +141,7 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState( editEnabled, isLoading, api, - open, + open: () => open(), onDrop, modalVisible, FileIcon, @@ -151,5 +151,5 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState( selectedImage, } }, - 'attachmentCell', + 'useAttachmentCell', ) diff --git a/packages/nc-gui-v2/components/smartsheet/Pagination.vue b/packages/nc-gui-v2/components/smartsheet/Pagination.vue index c9859a1d5b..1b0acb3c05 100644 --- a/packages/nc-gui-v2/components/smartsheet/Pagination.vue +++ b/packages/nc-gui-v2/components/smartsheet/Pagination.vue @@ -1,15 +1,14 @@ @@ -128,10 +123,10 @@ watch(isOpen, (n, _o) => {