From d1b0b7cca3656d4d19c38bc4b736dd0224f72e19 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 6 Aug 2022 12:40:43 +0530 Subject: [PATCH] fix(gui-v2): block user from editing pk and ai values Signed-off-by: Pranav C --- packages/nc-gui-v2/components.d.ts | 2 + .../nc-gui-v2/components/smartsheet/Grid.vue | 42 +++++++++++++------ .../composables/useSmartsheetStore.ts | 2 + 3 files changed, 33 insertions(+), 13 deletions(-) diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index ca9f1693ce..1b71a9a17f 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -7,6 +7,7 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { + '(fix(gui-v2)': block user from editing pk and ai values) AAlert: typeof import('ant-design-vue/es')['Alert'] AAutoComplete: typeof import('ant-design-vue/es')['AutoComplete'] AButton: typeof import('ant-design-vue/es')['Button'] @@ -66,6 +67,7 @@ declare module '@vue/runtime-core' { MdiDotsVertical: typeof import('~icons/mdi/dots-vertical')['default'] MdiLogout: typeof import('~icons/mdi/logout')['default'] MdiReload: typeof import('~icons/mdi/reload')['default'] + MdiTableArrowRight: typeof import('~icons/mdi/table-arrow-right')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index e04d35096d..e9547fc51f 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -1,5 +1,6 @@