diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 06:12:25 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 06:12:25 +0000 |
commit | 2bfa43cf3a8b0bb25a85066ff48db58f068bc493 (patch) | |
tree | 7ba5f89b4953742f025f5c8e0911cd1f964bb2e5 /app/assets/javascripts/visibility_level/constants.js | |
parent | 188f99dcc3de4678b308851d1cd8d26a200393cd (diff) | |
download | gitlab-ce-2bfa43cf3a8b0bb25a85066ff48db58f068bc493.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/visibility_level/constants.js')
-rw-r--r-- | app/assets/javascripts/visibility_level/constants.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/assets/javascripts/visibility_level/constants.js b/app/assets/javascripts/visibility_level/constants.js new file mode 100644 index 00000000000..65f0eceae55 --- /dev/null +++ b/app/assets/javascripts/visibility_level/constants.js @@ -0,0 +1,10 @@ +export const VISIBILITY_LEVEL_PRIVATE = 'private'; +export const VISIBILITY_LEVEL_INTERNAL = 'internal'; +export const VISIBILITY_LEVEL_PUBLIC = 'public'; + +// Matches `lib/gitlab/visibility_level.rb` +export const VISIBILITY_LEVELS_ENUM = { + [VISIBILITY_LEVEL_PRIVATE]: 0, + [VISIBILITY_LEVEL_INTERNAL]: 10, + [VISIBILITY_LEVEL_PUBLIC]: 20, +}; |