From cffad4b4f3493d30bc5c5f5b3c71885ea8e25c1e Mon Sep 17 00:00:00 2001 From: Steve Cliff Date: Mon, 4 May 2026 22:21:45 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20enabled=20toggle=20=E2=80=94=20list-row?= =?UTF-8?q?=20click=20+=20edit-form=20save?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two bugs in the channel-enabled affordance: 1. List-row toggle was a static span with no handler; the row's row-link overlay swallowed every click and routed to /edit. Add POST /settings/notifications/{id}/toggle backed by a new store method SetNotificationChannelEnabled, and turn the row toggle into an htmx-driven button that swaps in the new state. Use event.stopPropagation() on the toggle so it beats the row link. 2. Edit-form toggle visually flipped but the underlying checkbox reverted: the visual span lives inside the