From d20ccd7f5ae2d365a65346ce3aa166ccfb4e98e0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 6 Aug 2022 02:18:28 +0530 Subject: [PATCH] feat(gui-v2): show LTAR as list view in form Signed-off-by: Pranav C --- .../smartsheet/expanded-form/Comments.vue | 30 +++++++--------- .../smartsheet/expanded-form/index.vue | 9 +++-- .../components/virtual-cell/HasMany.vue | 7 +++- .../components/ListChildItems.vue | 17 ++++++--- .../composables/useExpandedFormStore.ts | 35 ++++++++++++------- packages/nc-gui-v2/plugins/domPurify.ts | 3 +- 6 files changed, 60 insertions(+), 41 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/expanded-form/Comments.vue b/packages/nc-gui-v2/components/smartsheet/expanded-form/Comments.vue index ac91a28c5e..01f93f2a8a 100644 --- a/packages/nc-gui-v2/components/smartsheet/expanded-form/Comments.vue +++ b/packages/nc-gui-v2/components/smartsheet/expanded-form/Comments.vue @@ -1,19 +1,11 @@ @@ -24,16 +16,17 @@ await loadCommentsAndLogs()
- -

{{ isYou(log.user) ? 'You' : log.user == null ? 'Shared base' : log.user }} {{ log.op_type === 'COMMENT' ? 'commented' : log.op_sub_type === 'INSERT' ? 'created' : 'edited' }}

-

+

{{ log.description }}

@@ -45,7 +38,8 @@ await loadCommentsAndLogs()
- Comments only + Comments only
mdi-account-circle @@ -67,10 +61,10 @@ await loadCommentsAndLogs() diff --git a/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue b/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue index a76ec3cf42..9eb4dab0eb 100644 --- a/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue @@ -37,7 +37,7 @@ const drawerToggleIcon = computed(() => (commentsDrawer.value ? MdiDoorOpen : Md