1
1
import { __ , sprintf } from '~/locale' ;
2
- import { TYPE_ISSUE } from '~/issues/constants' ;
2
+ import { TYPE_EPIC , TYPE_ISSUE } from '~/issues/constants' ;
3
3
4
4
export const issuableTypesMap = {
5
5
ISSUE : 'issue' ,
@@ -32,7 +32,7 @@ export const autoCompleteTextMap = {
32
32
{ emphasisStart : '<' , emphasisEnd : '>' } ,
33
33
false ,
34
34
) ,
35
- [ issuableTypesMap . EPIC ] : sprintf (
35
+ [ TYPE_EPIC ] : sprintf (
36
36
__ ( ' or %{emphasisStart}&epic id%{emphasisEnd}' ) ,
37
37
{ emphasisStart : '<' , emphasisEnd : '>' } ,
38
38
false ,
@@ -45,32 +45,32 @@ export const autoCompleteTextMap = {
45
45
} ,
46
46
false : {
47
47
[ TYPE_ISSUE ] : '' ,
48
- [ issuableTypesMap . EPIC ] : '' ,
48
+ [ TYPE_EPIC ] : '' ,
49
49
[ issuableTypesMap . MERGE_REQUEST ] : __ ( ' or references' ) ,
50
50
} ,
51
51
} ;
52
52
53
53
export const inputPlaceholderTextMap = {
54
54
[ TYPE_ISSUE ] : __ ( 'Paste issue link' ) ,
55
55
[ issuableTypesMap . INCIDENT ] : __ ( 'Paste link' ) ,
56
- [ issuableTypesMap . EPIC ] : __ ( 'Paste epic link' ) ,
56
+ [ TYPE_EPIC ] : __ ( 'Paste epic link' ) ,
57
57
[ issuableTypesMap . MERGE_REQUEST ] : __ ( 'Enter merge request URLs' ) ,
58
58
} ;
59
59
60
60
export const inputPlaceholderConfidentialTextMap = {
61
61
[ TYPE_ISSUE ] : __ ( 'Paste confidential issue link' ) ,
62
- [ issuableTypesMap . EPIC ] : __ ( 'Paste confidential epic link' ) ,
62
+ [ TYPE_EPIC ] : __ ( 'Paste confidential epic link' ) ,
63
63
[ issuableTypesMap . MERGE_REQUEST ] : __ ( 'Enter merge request URLs' ) ,
64
64
} ;
65
65
66
66
export const relatedIssuesRemoveErrorMap = {
67
67
[ TYPE_ISSUE ] : __ ( 'An error occurred while removing issues.' ) ,
68
- [ issuableTypesMap . EPIC ] : __ ( 'An error occurred while removing epics.' ) ,
68
+ [ TYPE_EPIC ] : __ ( 'An error occurred while removing epics.' ) ,
69
69
} ;
70
70
71
71
export const pathIndeterminateErrorMap = {
72
72
[ TYPE_ISSUE ] : __ ( 'We could not determine the path to remove the issue' ) ,
73
- [ issuableTypesMap . EPIC ] : __ ( 'We could not determine the path to remove the epic' ) ,
73
+ [ TYPE_EPIC ] : __ ( 'We could not determine the path to remove the epic' ) ,
74
74
} ;
75
75
76
76
export const itemAddFailureTypesMap = {
@@ -80,7 +80,7 @@ export const itemAddFailureTypesMap = {
80
80
81
81
export const addRelatedIssueErrorMap = {
82
82
[ TYPE_ISSUE ] : __ ( 'Issue cannot be found.' ) ,
83
- [ issuableTypesMap . EPIC ] : __ ( 'Epic cannot be found.' ) ,
83
+ [ TYPE_EPIC ] : __ ( 'Epic cannot be found.' ) ,
84
84
} ;
85
85
86
86
export const addRelatedItemErrorMap = {
@@ -97,7 +97,7 @@ export const addRelatedItemErrorMap = {
97
97
export const issuableIconMap = {
98
98
[ TYPE_ISSUE ] : 'issues' ,
99
99
[ issuableTypesMap . INCIDENT ] : 'issues' ,
100
- [ issuableTypesMap . EPIC ] : 'epic' ,
100
+ [ TYPE_EPIC ] : 'epic' ,
101
101
} ;
102
102
103
103
export const PathIdSeparator = {
@@ -108,28 +108,28 @@ export const PathIdSeparator = {
108
108
export const issuablesBlockHeaderTextMap = {
109
109
[ TYPE_ISSUE ] : __ ( 'Linked items' ) ,
110
110
[ issuableTypesMap . INCIDENT ] : __ ( 'Linked incidents or issues' ) ,
111
- [ issuableTypesMap . EPIC ] : __ ( 'Linked epics' ) ,
111
+ [ TYPE_EPIC ] : __ ( 'Linked epics' ) ,
112
112
} ;
113
113
114
114
export const issuablesBlockHelpTextMap = {
115
115
[ TYPE_ISSUE ] : __ ( 'Learn more about linking issues' ) ,
116
116
[ issuableTypesMap . INCIDENT ] : __ ( 'Learn more about linking issues and incidents' ) ,
117
- [ issuableTypesMap . EPIC ] : __ ( 'Learn more about linking epics' ) ,
117
+ [ TYPE_EPIC ] : __ ( 'Learn more about linking epics' ) ,
118
118
} ;
119
119
120
120
export const issuablesBlockAddButtonTextMap = {
121
121
[ TYPE_ISSUE ] : __ ( 'Add a related issue' ) ,
122
- [ issuableTypesMap . EPIC ] : __ ( 'Add a related epic' ) ,
122
+ [ TYPE_EPIC ] : __ ( 'Add a related epic' ) ,
123
123
} ;
124
124
125
125
export const issuablesFormCategoryHeaderTextMap = {
126
126
[ TYPE_ISSUE ] : __ ( 'The current issue' ) ,
127
127
[ issuableTypesMap . INCIDENT ] : __ ( 'The current incident' ) ,
128
- [ issuableTypesMap . EPIC ] : __ ( 'The current epic' ) ,
128
+ [ TYPE_EPIC ] : __ ( 'The current epic' ) ,
129
129
} ;
130
130
131
131
export const issuablesFormInputTextMap = {
132
132
[ TYPE_ISSUE ] : __ ( 'the following issues' ) ,
133
133
[ issuableTypesMap . INCIDENT ] : __ ( 'the following incidents or issues' ) ,
134
- [ issuableTypesMap . EPIC ] : __ ( 'the following epics' ) ,
134
+ [ TYPE_EPIC ] : __ ( 'the following epics' ) ,
135
135
} ;
0 commit comments