summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/models/label.js
blob: 98c1ec014c4cf834e2d7d88962a9f91b77ec825e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* eslint-disable no-unused-vars, space-before-function-paren */

class ListLabel {
  constructor (obj) {
    this.id = obj.id;
    this.title = obj.title;
    this.type = obj.type;
    this.color = obj.color;
    this.textColor = obj.text_color;
    this.description = obj.description;
    this.priority = (obj.priority !== null) ? obj.priority : Infinity;
  }
}

window.ListLabel = ListLabel;