Monorepo for Tangled tangled.org

appview/pulls: add submit shortcut #1109

merged opened by marco.tngl.sh targeting master from marco.tngl.sh/core: push-lxxussryqomn
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:uvlgxr6xf446eugiky6s3swz/sh.tangled.repo.pull/3mg3ovr45cr22
+3
Diff #1
+2
appview/pages/templates/repo/pulls/fragments/pullNewComment.html
··· 5 5 {{ template "user/fragments/picHandleLink" .LoggedInUser.Did }} 6 6 <form 7 7 hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .RoundNumber }}/comment" 8 + hx-trigger="submit, keydown[(ctrlKey || metaKey) && key=='Enter'] from:#pull-comment-textarea" 8 9 hx-swap="none" 9 10 hx-on::after-request="if(event.detail.successful) this.reset()" 10 11 hx-disabled-elt="#reply-{{ .RoundNumber }}" 11 12 class="w-full flex flex-wrap gap-2 group" 12 13 > 13 14 <textarea 15 + id="pull-comment-textarea" 14 16 name="body" 15 17 class="w-full p-2 rounded border" 16 18 rows=8
+1
appview/pages/templates/repo/pulls/new.html
··· 7 7 8 8 <form 9 9 hx-post="/{{ .RepoInfo.FullName }}/pulls/new" 10 + hx-trigger="submit, keydown[(ctrlKey || metaKey) && key=='Enter'] from:(#patch,#title,#body)" 10 11 hx-indicator="#create-pull-spinner" 11 12 hx-swap="none" 12 13 >

History

2 rounds 1 comment
sign up or login to add to the discussion
1 commit
expand
appview/pulls: add submit shortcut
expand 0 comments
pull request successfully merged
1 commit
expand
appview/pulls: add submit shortcut
expand 1 comment

lgtm! thanks for working on this!