Welcome to mirror list, hosted at ThFree Co, Russian Federation.

note.js « models « diff_notes « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 825a69deeec07baac3dc2261723f8a1460e2eac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;