BigW Consortium Gitlab

label.js 369 Bytes
Newer Older
1 2
/* eslint-disable no-unused-vars, space-before-function-paren */

3
class ListLabel {
4
  constructor (obj) {
5
    this.id = obj.id;
6
    this.title = obj.title;
7
    this.color = obj.color;
8
    this.textColor = obj.text_color;
9
    this.description = obj.description;
10
    this.priority = (obj.priority !== null) ? obj.priority : Infinity;
11 12
  }
}
13 14

window.ListLabel = ListLabel;