2022-01-26 12:08:38 +05:30
|
|
|
import { __ } from '~/locale';
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
export const STATUS_ALL = 'all';
|
2023-04-23 21:23:45 +05:30
|
|
|
export const STATUS_CLOSED = 'closed';
|
2023-05-27 22:25:52 +05:30
|
|
|
export const STATUS_MERGED = 'merged';
|
2023-04-23 21:23:45 +05:30
|
|
|
export const STATUS_OPEN = 'opened';
|
|
|
|
export const STATUS_REOPENED = 'reopened';
|
2023-06-20 00:43:36 +05:30
|
|
|
export const STATUS_LOCKED = 'locked';
|
2023-04-23 21:23:45 +05:30
|
|
|
|
|
|
|
export const TITLE_LENGTH_MAX = 255;
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
export const TYPE_ALERT = 'alert';
|
2023-04-23 21:23:45 +05:30
|
|
|
export const TYPE_EPIC = 'epic';
|
2023-05-27 22:25:52 +05:30
|
|
|
export const TYPE_INCIDENT = 'incident';
|
2023-04-23 21:23:45 +05:30
|
|
|
export const TYPE_ISSUE = 'issue';
|
2023-05-27 22:25:52 +05:30
|
|
|
export const TYPE_MERGE_REQUEST = 'merge_request';
|
|
|
|
export const TYPE_TEST_CASE = 'test_case';
|
|
|
|
|
|
|
|
export const WORKSPACE_GROUP = 'group';
|
|
|
|
export const WORKSPACE_PROJECT = 'project';
|
2022-01-26 12:08:38 +05:30
|
|
|
|
2023-07-09 08:55:56 +05:30
|
|
|
export const issuableStatusText = {
|
2023-04-23 21:23:45 +05:30
|
|
|
[STATUS_CLOSED]: __('Closed'),
|
|
|
|
[STATUS_OPEN]: __('Open'),
|
|
|
|
[STATUS_REOPENED]: __('Open'),
|
2023-06-20 00:43:36 +05:30
|
|
|
[STATUS_MERGED]: __('Merged'),
|
|
|
|
[STATUS_LOCKED]: __('Open'),
|
2022-01-26 12:08:38 +05:30
|
|
|
};
|
2023-07-09 08:55:56 +05:30
|
|
|
|
|
|
|
export const IssuableTypeText = {
|
|
|
|
[TYPE_ISSUE]: __('issue'),
|
|
|
|
[TYPE_MERGE_REQUEST]: __('merge request'),
|
|
|
|
};
|