mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
feat: Audit Logs - add new page to frontend [WIP] (no-changelog) (#6418)
* feat: Audit Logs (WIP) * feat: Audit Logs license depending contents * fix(editor): simplify import * fix(editor): add audit logs to server
This commit is contained in:
@@ -74,6 +74,14 @@ export default defineComponent({
|
||||
available: this.canAccessApiSettings(),
|
||||
activateOnRouteNames: [VIEWS.API_SETTINGS],
|
||||
},
|
||||
{
|
||||
id: 'settings-audit-logs',
|
||||
icon: 'clipboard-list',
|
||||
label: this.$locale.baseText('settings.auditLogs.title'),
|
||||
position: 'top',
|
||||
available: this.canAccessAuditLogs(),
|
||||
activateOnRouteNames: [VIEWS.AUDIT_LOGS],
|
||||
},
|
||||
{
|
||||
id: 'settings-version-control',
|
||||
icon: 'code-branch',
|
||||
@@ -159,6 +167,9 @@ export default defineComponent({
|
||||
canAccessVersionControl(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.VERSION_CONTROL);
|
||||
},
|
||||
canAccessAuditLogs(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.AUDIT_LOGS);
|
||||
},
|
||||
canAccessSso(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.SSO_SETTINGS);
|
||||
},
|
||||
@@ -220,6 +231,11 @@ export default defineComponent({
|
||||
void this.$router.push({ name: VIEWS.VERSION_CONTROL });
|
||||
}
|
||||
break;
|
||||
case 'settings-audit-logs':
|
||||
if (this.$router.currentRoute.name !== VIEWS.AUDIT_LOGS) {
|
||||
void this.$router.push({ name: VIEWS.AUDIT_LOGS });
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user