summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/new_form.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-06-16 08:32:43 +0200
committerGitHub <noreply@github.com>2023-06-16 08:32:43 +0200
commitb71cb7acdc8840c9fc16b496c90a048051d15823 (patch)
treefae5454a2c9f1a7d510255260b562519681841c0 /templates/repo/issue/new_form.tmpl
parentShow if File is Executable (#25287) (diff)
downloadforgejo-b71cb7acdc8840c9fc16b496c90a048051d15823.tar.xz
forgejo-b71cb7acdc8840c9fc16b496c90a048051d15823.zip
Use fetch to send requests to create issues/comments (#25258)
Follow #23290 Network error won't make content lost. And this is a much better approach than "loading-button". The UI is not perfect and there are still some TODOs, they can be done in following PRs, not a must in this PR's scope. <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/c94ba958-aa46-4747-8ddf-6584deeed25c) </details>
Diffstat (limited to 'templates/repo/issue/new_form.tmpl')
-rw-r--r--templates/repo/issue/new_form.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl
index 00da68eb06..70c45b37c8 100644
--- a/templates/repo/issue/new_form.tmpl
+++ b/templates/repo/issue/new_form.tmpl
@@ -1,4 +1,4 @@
-<form class="issue-content ui comment form" id="new-issue" action="{{.Link}}" method="post">
+<form class="issue-content ui comment form form-fetch-action" id="new-issue" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
{{if .Flash}}
<div class="sixteen wide column">
@@ -35,7 +35,7 @@
{{template "repo/issue/comment_tab" .}}
{{end}}
<div class="text right">
- <button class="ui green button loading-button" tabindex="6">
+ <button class="ui green button" tabindex="6">
{{if .PageIsComparePull}}
{{.locale.Tr "repo.pulls.create"}}
{{else}}