Skip to content

Commit 4486dd3

Browse files
authored
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>
1 parent 7d855ef commit 4486dd3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

templates/repo/settings/protected_branch.tmpl

-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@
256256

257257
<div class="field">
258258
<button class="ui green button">{{$.locale.Tr "repo.settings.protected_branch.save_rule"}}</button>
259-
<button class="ui gray button">{{$.locale.Tr "cancel"}}</button>
260259
</div>
261260
</div>
262261
</form>

0 commit comments

Comments
 (0)