gitlab-org--gitlab-foss/app/assets/javascripts/boards/models/assignee.js
Martin Hanzel 25269f66ba Move Vue models from vue_shared to boards
Some classes in vue_shared were used only by boards, so they were
moved to the boards directory.
2019-06-07 13:23:10 +00:00

13 lines
361 B
JavaScript

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;