debian-mirror-gitlab/app/assets/javascripts/clusters_list/constants.js

20 lines
644 B
JavaScript
Raw Normal View History

2020-04-08 14:13:33 +05:30
import { __ } from '~/locale';
export const CLUSTER_TYPES = {
project_type: __('Project'),
group_type: __('Group'),
instance_type: __('Instance'),
};
2020-06-23 00:09:42 +05:30
export const MAX_REQUESTS = 3;
2020-04-08 14:13:33 +05:30
export const STATUSES = {
2020-05-24 23:13:21 +05:30
default: { className: 'bg-white', title: __('Unknown') },
2020-04-08 14:13:33 +05:30
disabled: { className: 'disabled', title: __('Disabled') },
2020-05-24 23:13:21 +05:30
created: { className: 'bg-success', title: __('Connected') },
2020-04-08 14:13:33 +05:30
unreachable: { className: 'bg-danger', title: __('Unreachable') },
authentication_failure: { className: 'bg-warning', title: __('Authentication Failure') },
deleting: { title: __('Deleting') },
2020-06-23 00:09:42 +05:30
creating: { title: __('Creating') },
2020-04-08 14:13:33 +05:30
};