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 8ad66c7dcc..ac91a28c5e 100644 --- a/packages/nc-gui-v2/components/smartsheet/expanded-form/Comments.vue +++ b/packages/nc-gui-v2/components/smartsheet/expanded-form/Comments.vue @@ -3,9 +3,17 @@ import { useExpandedFormStoreOrThrow } from '#imports' import { timeAgo } from '~/utils' import MdiKeyboardReturnIcon from '~icons/mdi/keyboard-return' import MdiAccountIcon from '~icons/mdi/account-circle' -import {colors} +import { enumColor } from '~/utils' -const { loadCommentsAndLogs, commentsAndLogs, isCommentsLoading, commentsOnly, saveComment,isYou } = useExpandedFormStoreOrThrow() +const { + loadCommentsAndLogs, + commentsAndLogs, + isCommentsLoading, + commentsOnly, + saveComment, + isYou, + comment, +} = useExpandedFormStoreOrThrow() await loadCommentsAndLogs() @@ -15,83 +23,54 @@ 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 }} -

- -

- -

- {{ timeAgo(log.created_at) }} -

-
- +
+
+ Comments only + +
+ mdi-account-circle + + +
- - - -
- mdi-account-circle - - - -
- + 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 f14b08cd00..a76ec3cf42 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