From 859db365d36012dc0d6cdd89735232e915483dc0 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Wed, 25 Mar 2026 20:30:04 +0100 Subject: [PATCH] fix save and close buttons --- pkg/web/routes/dashboard.templ | 60 +++++++++++++++---------------- pkg/web/routes/dashboard_templ.go | 2 +- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/pkg/web/routes/dashboard.templ b/pkg/web/routes/dashboard.templ index c150dfb..1421cfa 100644 --- a/pkg/web/routes/dashboard.templ +++ b/pkg/web/routes/dashboard.templ @@ -139,7 +139,7 @@ templ DashboardContent(props DashboardProps) { - -
+ + +
+ + +
- + -
-
+ + + +
+ + +

Description

@@ -300,16 +300,16 @@ templ DashboardContent(props DashboardProps) { x-model="issue.assignee" class="input input-sm input-bordered" placeholder="Enter assignee name" - @keydown.enter="fetch('/issues/' + issue.id, { method: 'PATCH', body: new URLSearchParams({assignee: issue.assignee || ''}) }); editing = null" + @keydown.enter="saveField('assignee', issue.assignee)" @keydown.escape="editing = null" x-init="$el.focus()" />
- - + +
diff --git a/pkg/web/routes/dashboard_templ.go b/pkg/web/routes/dashboard_templ.go index 75f6df1..8a40a0d 100644 --- a/pkg/web/routes/dashboard_templ.go +++ b/pkg/web/routes/dashboard_templ.go @@ -118,7 +118,7 @@ func DashboardContent(props DashboardProps) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }