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 () => {