diff options
author | Rajat Jain <rjain@gitlab.com> | 2019-04-29 14:06:13 +0300 |
---|---|---|
committer | Rajat Jain <rjain@gitlab.com> | 2019-04-30 10:42:00 +0300 |
commit | 147282cd0b69e1198db5801439383419b515ff53 (patch) | |
tree | c41e82e050ca51b0e6412e43bc6246893704750f /app | |
parent | 4047e5b8275490288e7ce38ae48e3f7248e5daf8 (diff) |
Only get milestone when EE
Create boards_util to conditionally `getMilestone` when in EE
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/boards/boards_util.js | 7 | ||||
-rw-r--r-- | app/assets/javascripts/boards/components/board_new_issue.vue | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/javascripts/boards/boards_util.js b/app/assets/javascripts/boards/boards_util.js new file mode 100644 index 00000000000..3178bda93b8 --- /dev/null +++ b/app/assets/javascripts/boards/boards_util.js @@ -0,0 +1,7 @@ +export function getMilestone() { + return null; +} + +export default { + getMilestone, +}; diff --git a/app/assets/javascripts/boards/components/board_new_issue.vue b/app/assets/javascripts/boards/components/board_new_issue.vue index 70daba352f9..dc1bdc23b5e 100644 --- a/app/assets/javascripts/boards/components/board_new_issue.vue +++ b/app/assets/javascripts/boards/components/board_new_issue.vue @@ -1,6 +1,7 @@ <script> import $ from 'jquery'; import { GlButton } from '@gitlab/ui'; +import { getMilestone } from 'ee_else_ce/boards/boards_util'; import eventHub from '../eventhub'; import ProjectSelect from './project_select.vue'; import ListIssue from '../models/issue'; @@ -51,11 +52,14 @@ export default { const labels = this.list.label ? [this.list.label] : []; const assignees = this.list.assignee ? [this.list.assignee] : []; + const milestone = getMilestone(this.list); + const issue = new ListIssue({ title: this.title, labels, subscribed: true, assignees, + milestone, project_id: this.selectedProject.id, }); |