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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
783 B
JavaScript
Raw Normal View History

2022-01-26 12:08:38 +05:30
import { __ } from '~/locale';
2023-04-23 21:23:45 +05:30
export const STATUS_CLOSED = 'closed';
export const STATUS_OPEN = 'opened';
export const STATUS_REOPENED = 'reopened';
export const TITLE_LENGTH_MAX = 255;
export const TYPE_EPIC = 'epic';
export const TYPE_ISSUE = 'issue';
2022-01-26 12:08:38 +05:30
export const IssuableStatusText = {
2023-04-23 21:23:45 +05:30
[STATUS_CLOSED]: __('Closed'),
[STATUS_OPEN]: __('Open'),
[STATUS_REOPENED]: __('Open'),
2022-01-26 12:08:38 +05:30
};
2023-04-23 21:23:45 +05:30
// Deprecated - use individual constants instead like `TYPE_ISSUE` above
2022-01-26 12:08:38 +05:30
export const IssuableType = {
Issue: 'issue',
Epic: 'epic',
MergeRequest: 'merge_request',
Alert: 'alert',
2023-04-23 21:23:45 +05:30
TestCase: 'test_case',
2022-01-26 12:08:38 +05:30
};
2022-03-02 08:16:31 +05:30
export const IssueType = {
Issue: 'issue',
Incident: 'incident',
TestCase: 'test_case',
};
2022-01-26 12:08:38 +05:30
export const WorkspaceType = {
project: 'project',
group: 'group',
};