-
- Downloads
Add "No One Can Push" to the protected branches UI.
1. Move to dropdowns instead of checkboxes. One each for "Allowed to Push" and "Allowed to Merge" 2. Refactor the `ProtectedBranches` coffeescript class into `ProtectedBranchesAccessSelect`. 3. Modify the backend to accept the new parameters.
Showing
- app/assets/javascripts/protected_branches_access_select.js.coffee 39 additions, 0 deletions...ts/javascripts/protected_branches_access_select.js.coffee
- app/assets/stylesheets/pages/projects.scss 4 additions, 1 deletionapp/assets/stylesheets/pages/projects.scss
- app/controllers/projects/protected_branches_controller.rb 1 addition, 1 deletionapp/controllers/projects/protected_branches_controller.rb
- app/models/protected_branch/push_access_level.rb 1 addition, 1 deletionapp/models/protected_branch/push_access_level.rb
- app/services/protected_branches/base_service.rb 12 additions, 8 deletionsapp/services/protected_branches/base_service.rb
- app/services/protected_branches/create_service.rb 15 additions, 13 deletionsapp/services/protected_branches/create_service.rb
- app/views/projects/protected_branches/_branches_list.html.haml 19 additions, 18 deletions...iews/projects/protected_branches/_branches_list.html.haml
- app/views/projects/protected_branches/_protected_branch.html.haml 4 additions, 2 deletions...s/projects/protected_branches/_protected_branch.html.haml
Please register or sign in to comment