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>
pull/25062/head^2
Yarden Shoham 1 year ago committed by GitHub
parent 7d855efb1f
commit 4486dd39e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      templates/repo/settings/protected_branch.tmpl

@ -256,7 +256,6 @@
<div class="field"> <div class="field">
<button class="ui green button">{{$.locale.Tr "repo.settings.protected_branch.save_rule"}}</button> <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>
</div> </div>
</form> </form>

Loading…
Cancel
Save