From 4442b25a7a5316feadafef17f9184f0cf21b9de0 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 17 Apr 2026 09:39:33 +0200 Subject: [PATCH] fix(#248): add confirmation dialog before tag delete MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TagDeleteGuard now calls confirm() (admin_tag_delete_confirm) before submitting — same pattern as document delete. Button changed to type=button with an async handler; page.svelte.spec.ts updated to pass ConfirmService context so TagDeleteGuard can initialise inside the page render. Co-Authored-By: Claude Sonnet 4.6 --- .../admin/tags/[id]/TagDeleteGuard.svelte | 14 ++++- .../tags/[id]/TagDeleteGuard.svelte.spec.ts | 63 ++++++++++++++++--- .../admin/tags/[id]/page.svelte.spec.ts | 41 +++++++----- 3 files changed, 92 insertions(+), 26 deletions(-) diff --git a/frontend/src/routes/admin/tags/[id]/TagDeleteGuard.svelte b/frontend/src/routes/admin/tags/[id]/TagDeleteGuard.svelte index f3d9498f..374e2f89 100644 --- a/frontend/src/routes/admin/tags/[id]/TagDeleteGuard.svelte +++ b/frontend/src/routes/admin/tags/[id]/TagDeleteGuard.svelte @@ -1,6 +1,7 @@