You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules
HesterG a43ea22479
Change form actions to fetch for submit review box (#25219)
Co-author: @wxiaoguang 

Close #25096 

The way to fix it in this PR is to change form submit to fetch using
formData, and add flags to avoid post repeatedly.
Should be able to apply to more forms that have the same issue after
this PR.

In the demo below, 'approve' is clicked several times, and then
'comment' is clicked several time after 'request changes' clicked.

After:


https://github.com/go-gitea/gitea/assets/17645053/beabeb1d-fe66-4b76-b048-4f022b4e83a0


Update: screenshots from /devtest

>
![image](https://user-images.githubusercontent.com/2114189/245680011-ee4231e0-a53d-4c2a-a9c2-71ccd98005cc.png)
> 
>
![image](https://user-images.githubusercontent.com/2114189/245680057-9215d348-63d8-406d-8828-17e171163aaa.png)
> 
>
![image](https://user-images.githubusercontent.com/2114189/245680148-89d7b3d1-d7b6-442f-b69e-eadaee112482.png)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
actions Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
activitypub Add Chef package registry (#22554) 2 years ago
analyze Implement FSFE REUSE for golang files (#21840) 2 years ago
assetfs Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
auth Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
avatar Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2 years ago
base Use a general Eval function for expressions in templates. (#23927) 2 years ago
cache Update redis library to support redis v7 (#24114) 2 years ago
charset Update go tool dependencies, restructure lint targets (#24239) 2 years ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
context Change form actions to fetch for submit review box (#25219) 2 years ago
csv Refactor locale number (#24134) 2 years ago
doctor Rewrite logger system (#24726) 2 years ago
emoji Fix unstable emoji sort (#22346) 2 years ago
eventsource Move `convert` package to services (#22264) 2 years ago
generate Implement FSFE REUSE for golang files (#21840) 2 years ago
git Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
gitgraph Add context cache as a request level cache (#22294) 2 years ago
graceful Improve queue and logger context (#24924) 2 years ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 2 years ago
highlight test_env: hardcode major go version in use (#23464) 2 years ago
hostmatcher Implement FSFE REUSE for golang files (#21840) 2 years ago
html Implement FSFE REUSE for golang files (#21840) 2 years ago
httpcache Use standard HTTP library to serve files (#24693) 2 years ago
httplib Use standard HTTP library to serve files (#24693) 2 years ago
indexer Improve queue and logger context (#24924) 2 years ago
issue/template Allow issue templates to not render title (#22589) 2 years ago
json Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs Rewrite logger system (#24726) 2 years ago
log Improve logger Pause handling (#24946) 2 years ago
markup Fix task list checkbox toggle to work with YAML front matter (#25184) 2 years ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics Use a separate admin page to show global stats, remove `actions` stat (#25062) 2 years ago
migration Scoped labels (#22585) 2 years ago
mirror Improve queue and logger context (#24924) 2 years ago
nosql Update redis library to support redis v7 (#24114) 2 years ago
notification Rename NotifyPullReviewRequest to NotifyPullRequestReviewRequest (#24988) 2 years ago
options Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
packages Add CRAN package registry (#22331) 2 years ago
paginator Use more specific test methods (#24265) 2 years ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
process Do not output "Trace" level logs from process manager by default (#24952) 2 years ago
proxy Use proxy for pull mirror (#22771) 2 years ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Use standard HTTP library to serve files (#24693) 2 years ago
queue Help to recover from corrupted levelqueue (#24912) 2 years ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Use correct captured group range when parsing cross-reference (#22672) 2 years ago
regexplru Implement FSFE REUSE for golang files (#21840) 2 years ago
repository Remove stars when repo goes private (#19904) 2 years ago
secret Improve decryption failure message (#24573) 2 years ago
session Update redis library to support redis v7 (#24114) 2 years ago
setting Fix all possible setting error related storages and added some tests (#23911) 2 years ago
sitemap Fix sitemap (#22272) 2 years ago
ssh Rewrite logger system (#24726) 2 years ago
storage Fix all possible setting error related storages and added some tests (#23911) 2 years ago
structs fix swagger documentation for multiple files API endpoint (#25110) 2 years ago
svg Use inline SVG for built-in OAuth providers (#25171) 2 years ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Implement FSFE REUSE for golang files (#21840) 2 years ago
templates Remove the service worker (#25010) 2 years ago
test Fix admin config page error, use tests to cover the admin config and 500 error page (#24965) 2 years ago
testlogger Rewrite logger system (#24726) 2 years ago
timeutil Fix incorrect webhook time and use relative-time to display it (#24477) 2 years ago
translation Refactor INI package (first step) (#25024) 2 years ago
turnstile Add new captcha: cloudflare turnstile (#22369) 2 years ago
typesniffer Do not recognize text files as audio (#23355) 2 years ago
updatechecker Implement FSFE REUSE for golang files (#21840) 2 years ago
upload Implement FSFE REUSE for golang files (#21840) 2 years ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
validation Map OIDC groups to Orgs/Teams (#21441) 2 years ago
web Fix install page context, make the install page tests really test (#24858) 2 years ago
webhook New webhook trigger for receiving Pull Request review requests (#24481) 2 years ago