debian-mirror-gitlab/app/assets/javascripts/boards/models/label.js.es6

11 lines
272 B
JavaScript
Raw Normal View History

2016-09-13 17:45:13 +05:30
class ListLabel {
constructor (obj) {
this.id = obj.id;
this.title = obj.title;
this.color = obj.color;
this.textColor = obj.text_color;
this.description = obj.description;
this.priority = (obj.priority !== null) ? obj.priority : Infinity;
}
}