From b376287cc939e13cb436973a987957ffa2eecdcb Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 12 Jun 2026 15:33:22 +0300 Subject: [PATCH] appview/pages: cleverer htmx-ing in new issue comment fragments - errors are printed to the right of the button - any existing error messages are dismissed before a new request is fired Signed-off-by: oppiliappan --- .../repo/issues/fragments/newComment.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/appview/pages/templates/repo/issues/fragments/newComment.html b/appview/pages/templates/repo/issues/fragments/newComment.html index 65f806a8..9dff87f3 100644 --- a/appview/pages/templates/repo/issues/fragments/newComment.html +++ b/appview/pages/templates/repo/issues/fragments/newComment.html @@ -2,13 +2,15 @@ {{ if .LoggedInUser }}
-
+
{{ template "user/fragments/picHandleLink" .LoggedInUser.Did }}
@@ -21,11 +23,9 @@ rows="5" required > -
-
-
+
{{ else if and (or $isIssueAuthor $isRepoCollaborator $isRepoOwner) (not .Issue.Open) }} @@ -74,6 +75,9 @@ {{ end }} +
+
+