2022-02-03 04:14:03 -05:00
|
|
|
import { __ } from '~/locale';
|
|
|
|
|
2020-08-12 20:10:06 -04:00
|
|
|
export const LEVEL_TYPES = {
|
|
|
|
ROLE: 'role',
|
|
|
|
USER: 'user',
|
2020-09-22 05:09:43 -04:00
|
|
|
DEPLOY_KEY: 'deploy_key',
|
2020-08-12 20:10:06 -04:00
|
|
|
GROUP: 'group',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const LEVEL_ID_PROP = {
|
|
|
|
ROLE: 'access_level',
|
|
|
|
USER: 'user_id',
|
2020-09-22 05:09:43 -04:00
|
|
|
DEPLOY_KEY: 'deploy_key_id',
|
2020-08-12 20:10:06 -04:00
|
|
|
GROUP: 'group_id',
|
|
|
|
};
|
|
|
|
|
2020-09-22 05:09:43 -04:00
|
|
|
export const ACCESS_LEVELS = {
|
|
|
|
MERGE: 'merge_access_levels',
|
|
|
|
PUSH: 'push_access_levels',
|
|
|
|
};
|
|
|
|
|
2020-08-12 20:10:06 -04:00
|
|
|
export const ACCESS_LEVEL_NONE = 0;
|
2022-02-03 04:14:03 -05:00
|
|
|
|
|
|
|
// 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',
|
|
|
|
);
|