summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-08-29 22:32:46 +0100
committerGitHub <noreply@github.com>2020-08-29 17:32:46 -0400
commit17fbbe97d7b4fca45d112f924191600eff52957b (patch)
tree81aacf1ad3cbf2c8017df3d017c3dfa7b5ff22ff /templates
parent9abc16a280ca43b5b7007d0c9f292b0fffa46a4b (diff)
downloadgitea-17fbbe97d7b4fca45d112f924191600eff52957b.tar.gz
gitea-17fbbe97d7b4fca45d112f924191600eff52957b.zip
Do not disable commit changes button on repost (#12644)
If the user has pressed commit changes and the post has failed - do not disable the commit changes button. Fix #12072 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/editor/edit.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/repo/editor/edit.tmpl b/templates/repo/editor/edit.tmpl
index af65813b33..db012728e7 100644
--- a/templates/repo/editor/edit.tmpl
+++ b/templates/repo/editor/edit.tmpl
@@ -6,6 +6,7 @@
<form class="ui edit form" method="post">
{{.CsrfTokenHtml}}
<input type="hidden" name="last_commit" value="{{.last_commit}}">
+ <input type="hidden" name="page_has_posted" value="{{.PageHasPosted}}">
<div class="ui secondary menu">
<div class="fitted item treepath">
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">