mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
hoisting note now seems to work correctly in relation to tabs
This commit is contained in:
@@ -79,7 +79,7 @@ async function protectNoteAndSendToServer() {
|
||||
const note = noteDetailService.getActiveNote();
|
||||
note.isProtected = true;
|
||||
|
||||
await noteDetailService.getActiveContext().saveNote();
|
||||
await noteDetailService.getActiveTabContext().saveNote();
|
||||
|
||||
treeService.setProtected(note.noteId, note.isProtected);
|
||||
|
||||
@@ -106,7 +106,7 @@ async function unprotectNoteAndSendToServer() {
|
||||
|
||||
activeNote.isProtected = false;
|
||||
|
||||
await noteDetailService.getActiveContext().saveNote();
|
||||
await noteDetailService.getActiveTabContext().saveNote();
|
||||
|
||||
treeService.setProtected(activeNote.noteId, activeNote.isProtected);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user