clean up tree service WIP

This commit is contained in:
zadam
2020-02-02 22:04:28 +01:00
parent d5ae3802d1
commit b63ecba695
14 changed files with 68 additions and 118 deletions

View File

@@ -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) {