17 lines
373 B
JavaScript
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;
|