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

48 lines
784 B
JavaScript
Raw Normal View History

2021-03-11 19:13:27 +05:30
import { __ } from '~/locale';
2021-04-17 20:07:23 +05:30
export const issuableTypes = {
issue: 'issue',
epic: 'epic',
};
2020-05-24 23:13:21 +05:30
export const BoardType = {
project: 'project',
group: 'group',
};
2019-12-21 20:55:43 +05:30
export const ListType = {
assignee: 'assignee',
milestone: 'milestone',
2021-03-11 19:13:27 +05:30
iteration: 'iteration',
2019-12-21 20:55:43 +05:30
backlog: 'backlog',
closed: 'closed',
label: 'label',
};
2021-03-11 19:13:27 +05:30
export const ListTypeTitles = {
assignee: __('Assignee'),
milestone: __('Milestone'),
iteration: __('Iteration'),
label: __('Label'),
};
export const formType = {
new: 'new',
delete: 'delete',
edit: 'edit',
};
2020-10-24 23:57:45 +05:30
export const inactiveId = 0;
2020-05-24 23:13:21 +05:30
2020-11-24 15:15:51 +05:30
export const ISSUABLE = 'issuable';
export const LIST = 'list';
2021-03-11 19:13:27 +05:30
export const NOT_FILTER = 'not[';
export const flashAnimationDuration = 2000;
2019-12-21 20:55:43 +05:30
export default {
2020-05-24 23:13:21 +05:30
BoardType,
2019-12-21 20:55:43 +05:30
ListType,
};