Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
147282cd
Commit
147282cd
authored
Apr 29, 2019
by
Rajat Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only get milestone when EE
Create boards_util to conditionally `getMilestone` when in EE
parent
4047e5b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
app/assets/javascripts/boards/boards_util.js
app/assets/javascripts/boards/boards_util.js
+7
-0
app/assets/javascripts/boards/components/board_new_issue.vue
app/assets/javascripts/boards/components/board_new_issue.vue
+4
-0
No files found.
app/assets/javascripts/boards/boards_util.js
0 → 100644
View file @
147282cd
export
function
getMilestone
()
{
return
null
;
}
export
default
{
getMilestone
,
};
app/assets/javascripts/boards/components/board_new_issue.vue
View file @
147282cd
<
script
>
<
script
>
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
{
getMilestone
}
from
'
ee_else_ce/boards/boards_util
'
;
import
eventHub
from
'
../eventhub
'
;
import
eventHub
from
'
../eventhub
'
;
import
ProjectSelect
from
'
./project_select.vue
'
;
import
ProjectSelect
from
'
./project_select.vue
'
;
import
ListIssue
from
'
../models/issue
'
;
import
ListIssue
from
'
../models/issue
'
;
...
@@ -51,11 +52,14 @@ export default {
...
@@ -51,11 +52,14 @@ export default {
const
labels
=
this
.
list
.
label
?
[
this
.
list
.
label
]
:
[];
const
labels
=
this
.
list
.
label
?
[
this
.
list
.
label
]
:
[];
const
assignees
=
this
.
list
.
assignee
?
[
this
.
list
.
assignee
]
:
[];
const
assignees
=
this
.
list
.
assignee
?
[
this
.
list
.
assignee
]
:
[];
const
milestone
=
getMilestone
(
this
.
list
);
const
issue
=
new
ListIssue
({
const
issue
=
new
ListIssue
({
title
:
this
.
title
,
title
:
this
.
title
,
labels
,
labels
,
subscribed
:
true
,
subscribed
:
true
,
assignees
,
assignees
,
milestone
,
project_id
:
this
.
selectedProject
.
id
,
project_id
:
this
.
selectedProject
.
id
,
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment