summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/models/milestone.js
blob: 7201b6e91f5565cd8aa550ee24d3759c784180ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export default class ListMilestone {
  constructor(obj) {
    this.id = obj.id;
    this.title = obj.title;

    if (IS_EE) {
      this.path = obj.path;
      this.state = obj.state;
      this.webUrl = obj.web_url || obj.webUrl;
      this.description = obj.description;
    }
  }
}

window.ListMilestone = ListMilestone;