debian-mirror-gitlab/app/assets/javascripts/boards/models/milestone.js

18 lines
373 B
JavaScript
Raw Normal View History

2019-07-31 22:56:46 +05:30
import { isEE } from '~/lib/utils/common_utils';
export default class ListMilestone {
2017-08-17 22:00:37 +05:30
constructor(obj) {
this.id = obj.id;
this.title = obj.title;
2019-07-31 22:56:46 +05:30
if (isEE) {
this.path = obj.path;
this.state = obj.state;
this.webUrl = obj.web_url || obj.webUrl;
this.description = obj.description;
}
2017-08-17 22:00:37 +05:30
}
}
window.ListMilestone = ListMilestone;