diff --git a/pkg/web/routes/dashboard.templ b/pkg/web/routes/dashboard.templ index 516076c..459efd4 100644 --- a/pkg/web/routes/dashboard.templ +++ b/pkg/web/routes/dashboard.templ @@ -203,7 +203,7 @@ templ DashboardContent(props DashboardProps) { name="issue_type" x-model="issue.issue_type" class="select select-sm select-bordered" - @change="fetch('/issues/' + issue.id, { method: 'PATCH', body: new URLSearchParams({issue_type: issue.issue_type}) }).then(() => editing = null)" + @change="fetch('/issues/' + issue.id, { method: 'PATCH', body: new URLSearchParams({issue_type: issue.issue_type}), headers: { 'HX-Request': 'true' } }).then(() => { editing = null; setTimeout(() => { document.body.dispatchEvent(new CustomEvent('check-status')); }, 1000); })" x-init="$nextTick(() => $el.focus())" > @@ -227,7 +227,7 @@ templ DashboardContent(props DashboardProps) { name="priority" x-model="issue.priority" class="select select-sm select-bordered" - @change="fetch('/issues/' + issue.id, { method: 'PATCH', body: new URLSearchParams({priority: issue.priority}) }).then(() => editing = null)" + @change="fetch('/issues/' + issue.id, { method: 'PATCH', body: new URLSearchParams({priority: issue.priority}), headers: { 'HX-Request': 'true' } }).then(() => { editing = null; setTimeout(() => { document.body.dispatchEvent(new CustomEvent('check-status')); }, 1000); })" x-init="$nextTick(() => $el.focus())" > diff --git a/pkg/web/routes/dashboard_templ.go b/pkg/web/routes/dashboard_templ.go index 07e69a4..0a2dc10 100644 --- a/pkg/web/routes/dashboard_templ.go +++ b/pkg/web/routes/dashboard_templ.go @@ -117,7 +117,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, "
Create your first issue to get started.
Create your first issue to get started.