From 6392621199fd58546893c611a15b32613137246e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?=
=?UTF-8?q?=D0=97=D0=B8=D0=BC=D0=B8=D0=BD?=
Date: Mon, 8 Jun 2026 10:08:53 +0000
Subject: [PATCH] =?UTF-8?q?fix(ui):=20delete=20dict=20modal=20=E2=80=94=20?=
=?UTF-8?q?destructive=20=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20invalid=20?=
=?UTF-8?q?mars/danger?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/editor/EditorInfoPanel.tsx | 2 +-
ordinis-admin-ui/src/routes/dictionaries.$name.tsx | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ordinis-admin-ui/src/components/editor/EditorInfoPanel.tsx b/ordinis-admin-ui/src/components/editor/EditorInfoPanel.tsx
index a3b96fb..aa9f431 100644
--- a/ordinis-admin-ui/src/components/editor/EditorInfoPanel.tsx
+++ b/ordinis-admin-ui/src/components/editor/EditorInfoPanel.tsx
@@ -241,7 +241,7 @@ export function EditorInfoPanel({ detail, recordCount, actions, banner }: Editor
type="button"
onClick={actions.onDelete}
disabled={actions.deletePending}
- className="w-full h-8 rounded-md border border-mars/40 bg-surface text-mars text-cell flex items-center justify-center gap-1.5 transition-colors hover:border-mars hover:bg-mars/8 disabled:opacity-50 disabled:cursor-not-allowed"
+ className="w-full h-8 rounded-md border border-destructive/40 bg-surface text-destructive text-cell flex items-center justify-center gap-1.5 transition-colors hover:border-destructive hover:bg-destructive/10 disabled:opacity-50 disabled:cursor-not-allowed"
>
{actions.deletePending
? t('dict.delete.pending', { defaultValue: 'Удаляю…' })
diff --git a/ordinis-admin-ui/src/routes/dictionaries.$name.tsx b/ordinis-admin-ui/src/routes/dictionaries.$name.tsx
index 7ecaf04..b273651 100644
--- a/ordinis-admin-ui/src/routes/dictionaries.$name.tsx
+++ b/ordinis-admin-ui/src/routes/dictionaries.$name.tsx
@@ -1848,12 +1848,12 @@ function DictionaryDetail() {
'Будут удалены: ВСЕ записи справочника, drafts, schema-drafts, история версий. Эта операция необратима.',
})}
-
+
{name}
{detailQuery.data?.displayName ? ` — ${detailQuery.data.displayName}` : null}
{deleteError && (
-
+
{deleteError}
)}
@@ -1871,7 +1871,7 @@ function DictionaryDetail() {