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

47 lines
1.1 KiB
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 = [
2021-10-27 15:23:28 +05:30
{ value: 'issue', text: __('Issue'), icon: 'issue-type-issue' },
{ value: 'incident', text: __('Incident'), icon: 'issue-type-incident' },
2021-09-04 01:27:46 +05:30
];
export const IssueTypePath = 'issues';
export const IncidentTypePath = 'issues/incident';
export const IncidentType = 'incident';
export const issueState = { issueType: undefined, isDirty: false };
2021-12-11 22:18:48 +05:30
export const POLLING_DELAY = 2000;
export const WorkspaceType = {
project: 'project',
group: 'group',
};