summaryrefslogtreecommitdiff
path: root/internal/handlers/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/handlers.go')
-rw-r--r--internal/handlers/handlers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go
index 126eef1..a2d1f0b 100644
--- a/internal/handlers/handlers.go
+++ b/internal/handlers/handlers.go
@@ -661,6 +661,8 @@ func (h *Handler) handleAtomToggle(w http.ResponseWriter, r *http.Request, compl
case "trello":
h.store.InvalidateCache(store.CacheKeyTrelloBoards)
}
+ // Don't swap empty response - just trigger refresh
+ w.Header().Set("HX-Reswap", "none")
w.Header().Set("HX-Trigger", "refresh-tasks")
w.WriteHeader(http.StatusOK)
}