Fix deleting protected branch
What does this MR do and why?
Prevents from deleting protected branch when submit button is disbaled.
Screenshots or screen recordings
How to set up and validate locally
- Go to Repository > Branches within a project
- Click on delete icon for protected branch
- Try hitting enter when delete button in confirm modal is disabled
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #366301 (closed)