introduced NoteFull entity, fixes

This commit is contained in:
azivner
2018-03-25 23:25:17 -04:00
parent cdf94181d2
commit 35998058ce
15 changed files with 184 additions and 165 deletions

View File

@@ -94,11 +94,11 @@ async function protectNoteAndSendToServer() {
noteDetail.updateNoteFromInputs(note);
note.detail.isProtected = true;
note.isProtected = true;
await noteDetail.saveNoteToServer(note);
treeService.setProtected(note.detail.noteId, note.detail.isProtected);
treeService.setProtected(note.noteId, note.isProtected);
noteDetail.setNoteBackgroundIfProtected(note);
}
@@ -110,11 +110,11 @@ async function unprotectNoteAndSendToServer() {
noteDetail.updateNoteFromInputs(note);
note.detail.isProtected = false;
note.isProtected = false;
await noteDetail.saveNoteToServer(note);
treeService.setProtected(note.detail.noteId, note.detail.isProtected);
treeService.setProtected(note.noteId, note.isProtected);
noteDetail.setNoteBackgroundIfProtected(note);
}