From 3296046b4ab1f8cf3efcc908df2b1918b16831b7 Mon Sep 17 00:00:00 2001 From: Abhay Pratap Singh Date: Sat, 19 Sep 2026 01:12:22 +0530 Subject: [PATCH] fix: focus confirm button and use red for delete confirmations (#39350) Fixes https://github.com/go-gitea/gitea/issues/39347 1. Focus the confirm button in generic confirm modals so `Enter` runs the highlighted action. 2. Delete actions that lacked the risky flag now get it, so their confirm button is red. --------- Co-authored-by: silverwind --- templates/projects/view.tmpl | 4 ++-- templates/repo/actions/runs_list.tmpl | 2 +- templates/repo/issue/labels/label_list.tmpl | 2 +- templates/repo/issue/view_content/comments_delete_time.tmpl | 2 +- templates/repo/settings/webhook/base_list.tmpl | 2 +- templates/shared/secrets/add_list.tmpl | 2 +- templates/shared/variables/variable_list.tmpl | 2 +- web_src/js/features/comp/ConfirmModal.ts | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index 387e24bd8ea..2e719984584 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -48,7 +48,7 @@ {{ctx.Locale.Tr "repo.projects.close"}} {{end}} - - - - + `.trim());