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') }} - - { /> - +