summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-06-03 15:06:09 +0300
committerGitHub <noreply@github.com>2023-06-03 20:06:09 +0800
commit4486dd39e7f6062926d72e0d104ed303eb01a400 (patch)
tree6529708dfe3ee7ba2a4ee2df6e08a08f861ba48d
parent7d855efb1fe6b97c5d87492f67ed6aefd31b2474 (diff)
downloadgitea-4486dd39e7f6062926d72e0d104ed303eb01a400.tar.gz
gitea-4486dd39e7f6062926d72e0d104ed303eb01a400.zip
Remove cancel button from branch protection form (#25063)
It caused bugs. To cancel, just navigate away. - Follows #21381 and #21872 - Resolves #25038 ## Before ![image](https://github.com/go-gitea/gitea/assets/20454870/068c8d96-fc50-4725-8af2-d953e9f39024) ## After ![image](https://github.com/go-gitea/gitea/assets/20454870/105d5c50-e490-456a-a253-269b174c09ab) Signed-off-by: Yarden Shoham <git@yardenshoham.com>
-rw-r--r--templates/repo/settings/protected_branch.tmpl1
1 files changed, 0 insertions, 1 deletions
diff --git a/templates/repo/settings/protected_branch.tmpl b/templates/repo/settings/protected_branch.tmpl
index cad98f8a7f..42c7819977 100644
--- a/templates/repo/settings/protected_branch.tmpl
+++ b/templates/repo/settings/protected_branch.tmpl
@@ -256,7 +256,6 @@
<div class="field">
<button class="ui green button">{{$.locale.Tr "repo.settings.protected_branch.save_rule"}}</button>
- <button class="ui gray button">{{$.locale.Tr "cancel"}}</button>
</div>
</div>
</form>