diff --git a/src/frontend/src/components/operator/AuditTable.vue b/src/frontend/src/components/operator/AuditTable.vue index 3d7632f..4394d29 100644 --- a/src/frontend/src/components/operator/AuditTable.vue +++ b/src/frontend/src/components/operator/AuditTable.vue @@ -60,6 +60,15 @@ function changesOf(row) { return Array.isArray(row.changes) ? row.changes : [] } +// Строка изменения: «Поле: было → стало» либо «Поле: значение». +function changeLine(change) { + const field = fieldLabel(change.field) + const to = valueLabel(change.field, change.to) + return hasFrom(change) + ? `${field}: ${valueLabel(change.field, change.from)} → ${to}` + : `${field}: ${to}` +} + // Вторая строка колонки пользователя: имя пространства, иначе id. function tenantSubline(row) { return row.userName && row.tenantName ? row.tenantName : row.tenantId || '—' @@ -99,14 +108,7 @@ function pretty(json) { class="mt-1.5 max-w-[460px] rounded-md bg-ink/70 border border-white/8 p-2" >