refactor(editor): Remove legacy audit logs view (no-changelog) (#9053)

This commit is contained in:
Iván Ovejero
2024-04-05 10:23:27 +02:00
committed by GitHub
parent 637b6c4d3e
commit ba986fb018
6 changed files with 1 additions and 147 deletions

View File

@@ -1,5 +1,3 @@
import { useStorage } from '@/composables/useStorage';
import type {
NavigationGuardNext,
RouteLocation,
@@ -59,7 +57,6 @@ const SignoutView = async () => await import('@/views/SignoutView.vue');
const SamlOnboarding = async () => await import('@/views/SamlOnboarding.vue');
const SettingsSourceControl = async () => await import('./views/SettingsSourceControl.vue');
const SettingsExternalSecrets = async () => await import('./views/SettingsExternalSecrets.vue');
const SettingsAuditLogs = async () => await import('./views/SettingsAuditLogs.vue');
const WorkerView = async () => await import('./views/WorkerView.vue');
const WorkflowHistory = async () => await import('@/views/WorkflowHistory.vue');
const WorkflowOnboardingView = async () => await import('@/views/WorkflowOnboardingView.vue');
@@ -712,32 +709,6 @@ export const routes = [
},
},
},
{
path: 'audit-logs',
name: VIEWS.AUDIT_LOGS,
components: {
settingsView: SettingsAuditLogs,
},
meta: {
middleware: ['authenticated', 'rbac', 'custom'],
middlewareOptions: {
custom: () => {
return !!useStorage('audit-logs').value;
},
rbac: {
scope: 'auditLogs:manage',
},
},
telemetry: {
pageCategory: 'settings',
getProperties(route: RouteLocation) {
return {
feature: 'audit-logs',
};
},
},
},
},
],
},
{