From 075af8eaf5dbf4dfb01fcc8b8d75de257a986f62 Mon Sep 17 00:00:00 2001 From: Epid Date: Thu, 2 Apr 2026 04:55:34 +0300 Subject: [PATCH] fix(stopwatch): prevent page reload when stopping/cancelling from navbar popup The navbar popup stop/cancel forms used form-fetch-action, which always reloads the page when the server returns an empty redirect. Remove that class and add a dedicated delegated submit handler in stopwatch.ts that POSTs the action silently; the WebSocket push (or periodic poller) then updates the icon without any navigation. --- templates/base/head_navbar.tmpl | 4 ++-- web_src/js/features/stopwatch.ts | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 5b8593ec43..10590cca66 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -159,14 +159,14 @@ {{if $activeStopwatch}}{{$activeStopwatch.RepoSlug}}#{{$activeStopwatch.IssueIndex}}{{end}}
-
+
-
+