From d7d0e795203c1d09b1e2876f82ba9c4d44f3b8cf Mon Sep 17 00:00:00 2001 From: viljarb0 <156418063+viljarb0@users.noreply.github.com> Date: Sun, 8 Mar 2026 10:09:26 +0100 Subject: [PATCH] Update pkg/web/routes/dashboard.templ button instead of inline js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/web/routes/dashboard.templ | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/web/routes/dashboard.templ b/pkg/web/routes/dashboard.templ index e9c7eda..83a5d13 100644 --- a/pkg/web/routes/dashboard.templ +++ b/pkg/web/routes/dashboard.templ @@ -129,8 +129,15 @@ templ DashboardIssueRows(issues []*models.Issue, selectedID string) { hx-vals={ `{"selected-issue": "` + issue.ID + `"}` } hx-swap="innerHTML" data-issue-id={ issue.ID } - ondblclick="event.preventDefault(); var id = this.dataset.issueId; if(id) htmx.ajax('GET', '/issues/' + id + '/edit', {target: '#modal-container', swap: 'innerHTML'})" > +