From 71bbdd4dd52768f6ff8ab52f605a9ea127aa9187 Mon Sep 17 00:00:00 2001 From: stepan Date: Sun, 13 Sep 2026 20:32:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=BD=D0=B5=D1=81=D1=82=D0=B8=20?= =?UTF-8?q?=D0=B1=D1=83=D0=BB=D0=B5=D0=B2=D1=8B=20=D0=BB=D0=B8=D1=82=D0=B5?= =?UTF-8?q?=D1=80=D0=B0=D0=BB=D1=8B=20=D0=B0=D1=83=D0=B4=D0=B8=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B2=20=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82?= =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/components/operator/AuditTable.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/components/operator/AuditTable.vue b/src/frontend/src/components/operator/AuditTable.vue index 2539d9b..3d7632f 100644 --- a/src/frontend/src/components/operator/AuditTable.vue +++ b/src/frontend/src/components/operator/AuditTable.vue @@ -23,6 +23,10 @@ const COLUMNS = [ const ACTOR_TONES = { operator: 'brand', tenant: 'neutral', system: 'warn' } +// Строковые представления булевых значений в деталях события (как в JSON). +const TRUE_VALUE = 'true' +const FALSE_VALUE = 'false' + const expanded = ref(-1) const jsonOpen = ref(-1) @@ -47,8 +51,8 @@ const fieldLabel = (field) => translate(`operator.field.${field}`, field) function valueLabel(field, raw) { if (raw === null || raw === undefined || raw === '') return '—' - if (raw === 'true') return t('operator.da') - if (raw === 'false') return t('operator.net') + if (raw === TRUE_VALUE) return t('operator.da') + if (raw === FALSE_VALUE) return t('operator.net') return translate(`operator.value.${field}.${raw}`, raw) }