Мониторинг

@if (auditState$ | async; as state) { @switch (state.status) { @case ('loading') {
} @case ('error') {

Ошибка загрузки журнала аудита (доступно только Admin).

} @case ('ok') {

Журнал аудита

@if (state.items.length === 0) {

Записей нет.

} @else {
@for (t of uniqueResourceTypes(state.items); track t) { }
@if (filteredAuditLogs(state.items).length === 0) {

Нет записей выбранного типа.

} @else {
@for (entry of filteredAuditLogs(state.items); track entry.id) { }
ID Действие Ресурс Пользователь Время
#{{ entry.id }} {{ entry.action ?? '—' }} {{ entry.resource_type ? (entry.resource_type | auditResourceType) : '—' }} {{ entry.actor_email ?? '—' }} {{ formatDate(entry.created_at) }}
} }
} } }