From edf8e4cfd8906ffd73a80265c6be67129ef1de3f Mon Sep 17 00:00:00 2001 From: viljarb Date: Thu, 5 Mar 2026 17:58:08 +0100 Subject: [PATCH] forgot a file --- pkg/web/components/issue.templ | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/web/components/issue.templ b/pkg/web/components/issue.templ index 55797d5..ecfcbbd 100644 --- a/pkg/web/components/issue.templ +++ b/pkg/web/components/issue.templ @@ -13,7 +13,7 @@ type IssueFormProps struct { Title string Description string Status string - CloseReason string // Shown when status is "closed" + CloseReason string // Set when status is "closed" Priority int IssueType string Class string @@ -59,9 +59,10 @@ templ IssueForm(props IssueFormProps) { {Label: "In Progress", Value: "in_progress", Selected: props.Status == "in_progress"}, {Label: "Closed", Value: "closed", Selected: props.Status == "closed"}, }, - Size: "md", + Size: "md", Attrs: templ.Attributes{"x-model": "status"}, }) + // Show close reason input when status is closed; not adding close reason to db if props.PatchAction != "" {
@base.Textarea(base.TextareaProps{