gitlab-org--gitlab-foss/app/assets/javascripts/boards/models/label.js.es6

10 lines
231 B
JavaScript
Raw Normal View History

2016-08-01 09:18:30 -04:00
class Label {
constructor (obj) {
this.id = obj.id;
2016-08-01 09:18:30 -04:00
this.title = obj.title;
this.color = obj.color;
this.description = obj.description;
this.priority = (obj.priority !== null) ? obj.priority : Infinity;
2016-08-01 09:18:30 -04:00
}
}