Merge branch '10015-move-ee-differences-for-app-assets-javascripts-boards-models-milestone-js' into 'master'

Backport of "Move EE differences for `app/assets/javascripts/boards/models/milestone.js`"

See merge request gitlab-org/gitlab-ce!27272
This commit is contained in:
Fatih Acet 2019-04-11 22:46:43 +00:00
commit d25cdca68f
1 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,16 @@
class ListMilestone {
import { isEE } from '~/lib/utils/common_utils';
export default class ListMilestone {
constructor(obj) {
this.id = obj.id;
this.title = obj.title;
if (isEE) {
this.path = obj.path;
this.state = obj.state;
this.webUrl = obj.web_url || obj.webUrl;
this.description = obj.description;
}
}
}