summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/models/milestone.js
blob: 6f81d6bc6f8c23fca525e4e8b11ce54504c542d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;