summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/components/filtered_search_bar/constants.js
blob: 3d8afd162cbebf79aa04241e053b170367feeba1 (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
/* eslint-disable @gitlab/require-i18n-strings */
import { __ } from '~/locale';

const DEFAULT_LABEL_NO_LABEL = { value: 'No label', text: __('No label') };
export const DEFAULT_LABEL_NONE = { value: 'None', text: __('None') };
export const DEFAULT_LABEL_ANY = { value: 'Any', text: __('Any') };

export const DEFAULT_LABELS = [DEFAULT_LABEL_NO_LABEL];

export const DEBOUNCE_DELAY = 200;

export const SortDirection = {
  descending: 'descending',
  ascending: 'ascending',
};

export const DEFAULT_MILESTONES = [
  DEFAULT_LABEL_NONE,
  DEFAULT_LABEL_ANY,
  { value: 'Upcoming', text: __('Upcoming') },
  { value: 'Started', text: __('Started') },
];

/* eslint-enable @gitlab/require-i18n-strings */