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