From b695307e858de77744a6b4b675fed69c57e09d81 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 7 Dec 2024 13:18:12 +0530 Subject: [PATCH] fix(nc-gui): audit log ui changes --- .../dashboard/TreeView/ProjectNode.vue | 43 -- .../dashboard/settings/DataSources.vue | 2 +- .../nc-gui/components/workspace/AuditLogs.vue | 729 +----------------- packages/nc-gui/pages/account/index.vue | 13 - .../nc-gui/pages/account/index/[page].vue | 1 - packages/nc-gui/store/workspace.ts | 33 +- packages/nocodb-sdk/src/lib/Api.ts | 3 - 7 files changed, 7 insertions(+), 817 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue index 816b455ed6..1516698f60 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue @@ -29,8 +29,6 @@ const { isMobileMode, user } = useGlobal() const { api } = useApi() -const { auditLogsQuery, auditPaginationData } = storeToRefs(useWorkspace()) - const { createProject: _createProject, updateProject, getProjectMetaInfo, loadProject } = basesStore const { bases, basesUser } = storeToRefs(basesStore) @@ -480,36 +478,6 @@ const getSource = (sourceId: string) => { return base.value.sources?.find((s) => s.id === sourceId) } -async function openAudit(source: SourceType) { - $e('c:project:audit') - - auditPaginationData.value.page = 1 - - auditLogsQuery.value = { - ...auditLogsQuery.value, - orderBy: { - created_at: 'desc', - user: undefined, - }, - } - - const isOpen = ref(true) - - const { close } = useDialog(resolveComponent('DlgProjectAudit'), { - 'modelValue': isOpen, - 'sourceId': source!.id, - 'onUpdate:modelValue': () => closeDialog(), - 'baseId': base.value!.id, - 'bordered': true, - }) - - function closeDialog() { - isOpen.value = false - - close(1000) - } -} - const labelEl = ref() watch( () => labelEl.value && activeProjectId.value === base.value?.id, @@ -705,17 +673,6 @@ const showNodeTooltip = ref(true) - - - - {{ $t('title.audit') }} - - { /> - +