debian-mirror-gitlab/app/assets/javascripts/projects/settings/constants.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
599 B
JavaScript
Raw Normal View History

2022-04-04 11:22:00 +05:30
import { __ } from '~/locale';
2020-10-24 23:57:45 +05:30
export const LEVEL_TYPES = {
ROLE: 'role',
USER: 'user',
2021-01-03 14:25:43 +05:30
DEPLOY_KEY: 'deploy_key',
2020-10-24 23:57:45 +05:30
GROUP: 'group',
};
export const LEVEL_ID_PROP = {
ROLE: 'access_level',
USER: 'user_id',
2021-01-03 14:25:43 +05:30
DEPLOY_KEY: 'deploy_key_id',
2020-10-24 23:57:45 +05:30
GROUP: 'group_id',
};
2021-01-03 14:25:43 +05:30
export const ACCESS_LEVELS = {
MERGE: 'merge_access_levels',
PUSH: 'push_access_levels',
};
2020-10-24 23:57:45 +05:30
export const ACCESS_LEVEL_NONE = 0;
2022-04-04 11:22:00 +05:30
// must match shared_runners_setting in update_service.rb
export const CC_VALIDATION_REQUIRED_ERROR = __(
'Shared runners enabled cannot be enabled until a valid credit card is on file',
);