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

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

export const RESOURCE_TYPE_ISSUE = 'issue';
export const RESOURCE_TYPE_MERGE_REQUEST = 'merge-request';
export const RESOURCE_TYPE_MILESTONE = 'milestone';

export const RESOURCE_TYPES = [
  RESOURCE_TYPE_ISSUE,
  RESOURCE_TYPE_MERGE_REQUEST,
  RESOURCE_TYPE_MILESTONE,
];

export const RESOURCE_OPTIONS = {
  [RESOURCE_TYPE_ISSUE]: {
    path: 'issues/new',
    label: __('issue'),
  },
  [RESOURCE_TYPE_MERGE_REQUEST]: {
    path: 'merge_requests/new',
    label: __('merge request'),
  },
  [RESOURCE_TYPE_MILESTONE]: {
    path: 'milestones/new',
    label: __('milestone'),
  },
};