Welcome to mirror list, hosted at ThFree Co, Russian Federation.

constants.js « state_filter « search « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2f11cab904428139b45d3d01ea6092961b2de658 (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
import { __ } from '~/locale';

export const FILTER_HEADER = __('Status');

export const FILTER_TEXT = __('Any Status');

export const FILTER_STATES = {
  ANY: {
    label: __('Any'),
    value: 'all',
  },
  OPEN: {
    label: __('Open'),
    value: 'opened',
  },
  CLOSED: {
    label: __('Closed'),
    value: 'closed',
  },
  MERGED: {
    label: __('Merged'),
    value: 'merged',
  },
};

export const SCOPES = {
  ISSUES: 'issues',
  MERGE_REQUESTS: 'merge_requests',
};

export const FILTER_STATES_BY_SCOPE = {
  [SCOPES.ISSUES]: [FILTER_STATES.ANY, FILTER_STATES.OPEN, FILTER_STATES.CLOSED],
  [SCOPES.MERGE_REQUESTS]: [
    FILTER_STATES.ANY,
    FILTER_STATES.OPEN,
    FILTER_STATES.MERGED,
    FILTER_STATES.CLOSED,
  ],
};