mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
introduced NoteFull entity, fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user