diff --git a/appview/pages/templates/fragments/markdownEditor.html b/appview/pages/templates/fragments/markdownEditor.html --- a/appview/pages/templates/fragments/markdownEditor.html +++ b/appview/pages/templates/fragments/markdownEditor.html @@ -8,7 +8,7 @@ {{ $required := .Required }} {{ $autofocus := .AutoFocus }} {{ $placeholder := .Placeholder }} diff --git a/appview/pages/templates/repo/pulls/fragments/pullNewComment.html b/appview/pages/templates/repo/pulls/fragments/pullNewComment.html --- a/appview/pages/templates/repo/pulls/fragments/pullNewComment.html +++ b/appview/pages/templates/repo/pulls/fragments/pullNewComment.html @@ -8,7 +8,7 @@ hx-trigger="submit, keydown[(ctrlKey || metaKey) && key=='Enter'] from:find textarea" hx-target="#pull-comments-{{ .RoundNumber }}" hx-swap="beforeend" hx-disabled-elt="find button[type='submit']" - hx-on::after-request="if(event.detail.successful) htmx.ajax('GET', '/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .RoundNumber }}/actions', {target: '#actions-{{ .RoundNumber }}', swap: 'outerHTML'})" + hx-on::after-request="if(event.target === this && event.detail.successful) htmx.ajax('GET', '/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .RoundNumber }}/actions', {target: '#action-card-{{ .RoundNumber }}', swap: 'outerHTML'})" > @@ -37,7 +37,7 @@ type="button" class="btn-flat text-red-500 dark:text-red-400 flex gap-2 items-center group" hx-get="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .RoundNumber }}/actions" hx-swap="outerHTML" - hx-target="#actions-{{.RoundNumber}}" + hx-target="#action-card-{{.RoundNumber}}" > {{ i "x" "w-4 h-4" }} Cancel