Merge branch '10011-boards' into 'master'
Add isEE check in milestone See merge request gitlab-org/gitlab-ce!27814
This commit is contained in:
commit
acbfe10749
2 changed files with 11 additions and 0 deletions
7
app/assets/javascripts/boards/boards_util.js
Normal file
7
app/assets/javascripts/boards/boards_util.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
export function getMilestone() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
getMilestone,
|
||||||
|
};
|
|
@ -1,6 +1,7 @@
|
||||||
<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 {
|
||||||
|
|
||||||
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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue