From 9a0391c2a3e5a762a2a67d208035f3ddb9a6313b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 11 Jan 2023 12:47:01 +0800 Subject: [PATCH] fix(nc-gui): show LTAR record in view for users to add even it is empty --- .../nc-gui/components/smartsheet/Gallery.vue | 6 +- .../nc-gui/components/smartsheet/Kanban.vue | 60 ++++++++++--------- 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index 3b3f5ac263..cc00c0b43c 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -17,6 +17,7 @@ import { createEventHook, extractPkFromRow, inject, + isLTAR, nextTick, onMounted, provide, @@ -210,7 +211,10 @@ watch(view, async (nextView) => {
-
+
diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 26578fd027..7ba8adbc50 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -13,6 +13,7 @@ import { MetaInj, OpenNewRecordFormHookInj, inject, + isLTAR, onBeforeMount, onBeforeUnmount, provide, @@ -472,35 +473,40 @@ watch(view, async (nextView) => { :key="`record-${record.row.id}-${col.id}`" class="flex flex-col rounded-lg w-full" > - -
-
- - +
+ +
+
+ + +
-
- -
- - + +
+ + +