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:
16
packages/editor-ui/src/stores/auditLogs.store.ts
Normal file
16
packages/editor-ui/src/stores/auditLogs.store.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { computed } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
import { EnterpriseEditionFeature } from '@/constants';
|
||||
import { useSettingsStore } from '@/stores';
|
||||
|
||||
export const useAuditLogsStore = defineStore('auditLogs', () => {
|
||||
const settingsStore = useSettingsStore();
|
||||
|
||||
const isEnterpriseAuditLogsFeatureEnabled = computed(() =>
|
||||
settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.AuditLogs),
|
||||
);
|
||||
|
||||
return {
|
||||
isEnterpriseAuditLogsFeatureEnabled,
|
||||
};
|
||||
});
|
||||
@@ -24,3 +24,4 @@ export * from './workflows.store';
|
||||
export * from './cloudPlan.store';
|
||||
export * from './versionControl.store';
|
||||
export * from './sso.store';
|
||||
export * from './auditLogs.store';
|
||||
|
||||
Reference in New Issue
Block a user