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

14 lines
343 B
JavaScript
Raw Normal View History

2018-04-27 02:25:36 -04:00
export default class ListLabel {
2018-03-05 07:34:59 -05:00
constructor(obj) {
this.id = obj.id;
2016-08-01 09:18:30 -04:00
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;
2016-08-01 09:18:30 -04:00
}
}
window.ListLabel = ListLabel;