Migrate reduce visibility confirmation modal to gl-modal
What does this MR do and why?
This MR updates the "reduce project visibility" confirmation modal, migrating from the HAML implementation to vue
and making some small visual tweaks to align closer to the rest of our existing confirmation modals.
Related to #344561 (closed)
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Update the method body of
show_visibility_confirm_modal?
def show_visibility_confirm_modal?(project)
+ return true
project.unlink_forks_upon_visibility_decrease_enabled? && project.visibility_level > Gitlab::VisibilityLevel::PRIVATE && project.forks
end
- Create a project with
public
visibility - Navigate to project settings for your new project
- Change the visibility to
private
- Click save
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.
Edited by Ezekiel Kigbo