Refactor visibility level constants
What does this MR do and why?
Related to #369218 (closed)
In !92946 (merged) we introduced some new JavaScript constants that match lib/gitlab/visibility_level.rb#L25. There were a few other places that used very similar constants. This MR refactors those places to use app/assets/javascripts/visibility_level/constants.js as the single source of truth.
Screenshots or screen recordings
No visual changes
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 Peter Hegman