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

40 lines
933 B
JavaScript
Raw Normal View History

2020-06-23 00:09:42 +05:30
import { __ } from '~/locale';
export const IssuableStatus = {
Closed: 'closed',
2021-01-29 00:20:46 +05:30
Open: 'opened',
Reopened: 'reopened',
2020-06-23 00:09:42 +05:30
};
export const IssuableStatusText = {
[IssuableStatus.Closed]: __('Closed'),
2021-01-29 00:20:46 +05:30
[IssuableStatus.Open]: __('Open'),
[IssuableStatus.Reopened]: __('Open'),
2020-06-23 00:09:42 +05:30
};
export const IssuableType = {
Issue: 'issue',
Epic: 'epic',
MergeRequest: 'merge_request',
2021-09-04 01:27:46 +05:30
Alert: 'alert',
2020-06-23 00:09:42 +05:30
};
2020-07-28 23:09:34 +05:30
2021-01-29 00:20:46 +05:30
export const IssueStateEvent = {
Close: 'CLOSE',
Reopen: 'REOPEN',
};
2020-07-28 23:09:34 +05:30
export const STATUS_PAGE_PUBLISHED = __('Published on status page');
export const JOIN_ZOOM_MEETING = __('Join Zoom meeting');
2021-09-04 01:27:46 +05:30
export const IssuableTypes = [
{ value: 'issue', text: __('Issue') },
{ value: 'incident', text: __('Incident') },
];
export const IssueTypePath = 'issues';
export const IncidentTypePath = 'issues/incident';
export const IncidentType = 'incident';
export const issueState = { issueType: undefined, isDirty: false };