debian-mirror-gitlab/app/assets/javascripts/boards/models/milestone.js
2019-07-31 17:26:46 +00:00

17 lines
373 B
JavaScript

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;
}
}
}
window.ListMilestone = ListMilestone;