mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
clean up tree service WIP
This commit is contained in:
@@ -79,8 +79,6 @@ async function protectNoteAndSendToServer() {
|
||||
note.isProtected = true;
|
||||
|
||||
await appContext.getActiveTabContext().saveNote();
|
||||
|
||||
treeService.setProtected(note.noteId, note.isProtected);
|
||||
}
|
||||
|
||||
async function unprotectNoteAndSendToServer() {
|
||||
@@ -104,8 +102,6 @@ async function unprotectNoteAndSendToServer() {
|
||||
activeNote.isProtected = false;
|
||||
|
||||
await appContext.getActiveTabContext().saveNote();
|
||||
|
||||
treeService.setProtected(activeNote.noteId, activeNote.isProtected);
|
||||
}
|
||||
|
||||
async function protectSubtree(noteId, protect) {
|
||||
|
||||
Reference in New Issue
Block a user