summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/constants.js
blob: 65ebfe7be6c2eb9be8f25db1219354904130bb24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { __ } from '~/locale';

export const issuableTypes = {
  issue: 'issue',
  epic: 'epic',
};

export const BoardType = {
  project: 'project',
  group: 'group',
};

export const ListType = {
  assignee: 'assignee',
  milestone: 'milestone',
  iteration: 'iteration',
  backlog: 'backlog',
  closed: 'closed',
  label: 'label',
};

export const ListTypeTitles = {
  assignee: __('Assignee'),
  milestone: __('Milestone'),
  iteration: __('Iteration'),
  label: __('Label'),
};

export const formType = {
  new: 'new',
  delete: 'delete',
  edit: 'edit',
};

export const inactiveId = 0;

export const ISSUABLE = 'issuable';
export const LIST = 'list';

export const NOT_FILTER = 'not[';

export const flashAnimationDuration = 2000;

export default {
  BoardType,
  ListType,
};