Only get milestone when EE
Create boards_util to conditionally `getMilestone` when in EE
This commit is contained in:
parent
4047e5b827
commit
147282cd0b
|
@ -0,0 +1,7 @@
|
|||
export function getMilestone() {
|
||||
return null;
|
||||
}
|
||||
|
||||
export default {
|
||||
getMilestone,
|
||||
};
|
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue