Commit 8c2209d8 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '10011-boards' into 'master'

Add isEE check in milestone

Closes #10011

See merge request gitlab-org/gitlab-ee!11848
parents 167b5307 6ef509b5
export function getMilestone() {
return null;
}
export default {
getMilestone,
};
<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,7 +52,7 @@ export default {
const labels = this.list.label ? [this.list.label] : [];
const assignees = this.list.assignee ? [this.list.assignee] : [];
const milestone = this.list.milestone ? this.list.milestone : null;
const milestone = getMilestone(this.list);
const issue = new ListIssue({
title: this.title,
......
export function getMilestone({ milestone }) {
return milestone || null;
}
export default {
getMilestone,
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment