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:
Csaba Tuncsik
2023-06-15 08:33:28 +02:00
committed by GitHub
parent 004d38d82b
commit 1fe6459569
13 changed files with 170 additions and 0 deletions

View File

@@ -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;
}