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

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

35 lines
1 KiB
JavaScript
Raw Normal View History

2022-06-21 17:19:12 +05:30
import { s__ } from '~/locale';
2022-03-02 08:16:31 +05:30
2022-07-16 23:28:13 +05:30
export const STATE_OPEN = 'OPEN';
export const STATE_CLOSED = 'CLOSED';
export const STATE_EVENT_REOPEN = 'REOPEN';
export const STATE_EVENT_CLOSE = 'CLOSE';
2022-07-23 23:45:48 +05:30
export const TRACKING_CATEGORY_SHOW = 'workItems:show';
2022-06-21 17:19:12 +05:30
export const i18n = {
fetchError: s__('WorkItem|Something went wrong when fetching the work item. Please try again.'),
updateError: s__('WorkItem|Something went wrong while updating the work item. Please try again.'),
};
2022-07-16 23:28:13 +05:30
2022-08-13 15:12:31 +05:30
export const TASK_TYPE_NAME = 'Task';
2022-07-23 23:45:48 +05:30
2022-08-13 15:12:31 +05:30
export const WIDGET_TYPE_ASSIGNEES = 'ASSIGNEES';
2022-07-23 23:45:48 +05:30
export const WIDGET_TYPE_DESCRIPTION = 'DESCRIPTION';
2022-08-13 15:12:31 +05:30
export const WIDGET_TYPE_LABELS = 'LABELS';
2022-07-23 23:45:48 +05:30
export const WIDGET_TYPE_WEIGHT = 'WEIGHT';
export const WIDGET_TYPE_HIERARCHY = 'HIERARCHY';
2022-08-13 15:12:31 +05:30
export const WORK_ITEM_VIEWED_STORAGE_KEY = 'gl-show-work-item-banner';
2022-07-23 23:45:48 +05:30
export const WIDGET_TYPE_TASK_ICON = 'task-done';
export const WIDGET_ICONS = {
TASK: 'task-done',
};
export const WORK_ITEM_STATUS_TEXT = {
CLOSED: s__('WorkItem|Closed'),
OPEN: s__('WorkItem|Open'),
};