gitlab-org--gitlab-foss/app/assets/javascripts/vue_shared/models/label.js
2018-04-27 11:55:36 +05:30

13 lines
343 B
JavaScript

export default 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;