Skip to content

Use `GlModal` in `_protected_branch.html.haml`

What does this MR do and why?

Update the confirmation button variant to danger and its label to Unprotect branch on unprotect branch confirmation modal.

Screenshots or screen recordings

Before FF After FF (with danger variant and label update)
before after

How to set up and validate locally

  1. Enable the bootstrap_confirmation_modals feature flag: Feature.enable(:bootstrap_confirmation_modals)
  2. Login as admin
  3. Go to any Project -> Settings -> Repository -> Protected branches
  4. If there isn't already a protected branch, add one.
  5. Click on Unprotect button against the protected branch.
  6. Modal should be shown as per screenshots.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #344174 (closed)

Edited by Sharmad Nachnolkar

Merge request reports

Loading