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

14 lines
341 B
JavaScript
Raw Normal View History

2018-10-15 14:42:47 +05:30
export default class ListLabel {
2018-03-27 19:54:05 +05:30
constructor(obj) {
2016-09-13 17:45:13 +05:30
this.id = obj.id;
this.title = obj.title;
2018-03-17 18:26:18 +05:30
this.type = obj.type;
2016-09-13 17:45:13 +05:30
this.color = obj.color;
this.textColor = obj.text_color;
this.description = obj.description;
2018-12-13 13:39:08 +05:30
this.priority = obj.priority !== null ? obj.priority : Infinity;
2016-09-13 17:45:13 +05:30
}
}
2017-08-17 22:00:37 +05:30
window.ListLabel = ListLabel;