From 3c1b51751e998bbe4aa7af6d50efbc36527b20a9 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 24 Jun 2024 08:28:50 +0000 Subject: [PATCH] feat(nc-gui): allow search --- .../nc-gui/components/workspace/AuditLogs.vue | 91 ++++++++++++------- 1 file changed, 58 insertions(+), 33 deletions(-) diff --git a/packages/nc-gui/components/workspace/AuditLogs.vue b/packages/nc-gui/components/workspace/AuditLogs.vue index b7068e5260..9dd6f77076 100644 --- a/packages/nc-gui/components/workspace/AuditLogs.vue +++ b/packages/nc-gui/components/workspace/AuditLogs.vue @@ -59,7 +59,7 @@ const auditLogsQuery = ref<{ subType?: string base?: string user?: string - search?:string + search?: string }>({ type: undefined, subType: undefined, @@ -99,6 +99,11 @@ const handleRowClick = (audit: AuditType) => { isRowExpanded.value = true } +const handleSearchAuditLogs = useDebounceFn(() => { + console.log('searched', auditLogsQuery.value.search) + loadAudits() +}, 500) + onMounted(async () => { if (audits.value === null) { await loadAudits(currentPage.value, currentLimit.value) @@ -122,34 +127,38 @@ onMounted(async () => {
Track and monitor any changes made to any base in your workspace.
-
- +
+
+ + + + +
-
+
Type: {{ auditLogsQuery.type || 'All' }}
@@ -191,9 +200,9 @@ onMounted(async () => { -
-
SubType: {{ auditLogsQuery.subType || 'All' }}
- +
+
Sub-Type: {{ auditLogsQuery.subType || 'All' }}
+
@@ -225,7 +234,7 @@ onMounted(async () => { {{ subType }}
- +
@@ -422,8 +431,24 @@ onMounted(async () => { {{ audit.base_id }}
-
{{ audit.op_type }}
-
{{ audit.op_sub_type }}
+
+
+ + + + {{ audit.op_type }} + +
+
+
+
+ + + + {{ audit.op_sub_type }} + +
+
{{ audit.description }} @@ -462,7 +487,7 @@ onMounted(async () => { @update:page-size="loadAudits(currentPage, $event)" /> -
{{ totalRows }} records
+
{{ totalRows }} {{ totalRows === 1 ? 'record' : 'records' }}