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

14 lines
361 B
JavaScript
Raw Normal View History

2018-11-08 19:23:39 +05:30
export default class ListAssignee {
constructor(obj, defaultAvatar) {
this.id = obj.id;
this.name = obj.name;
this.username = obj.username;
this.avatar = obj.avatar_url || obj.avatar || defaultAvatar;
this.path = obj.path;
this.state = obj.state;
this.webUrl = obj.web_url || obj.webUrl;
}
}
window.ListAssignee = ListAssignee;