debian-mirror-gitlab/app/assets/javascripts/diff_notes/models/note.js

15 lines
421 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
class NoteModel {
constructor(discussionId, noteObj) {
this.discussionId = discussionId;
this.id = noteObj.noteId;
this.canResolve = noteObj.canResolve;
this.resolved = noteObj.resolved;
this.resolved_by = noteObj.resolvedBy;
this.authorName = noteObj.authorName;
this.authorAvatar = noteObj.authorAvatar;
this.noteTruncated = noteObj.noteTruncated;
}
}
window.NoteModel = NoteModel;