mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
protect/unprotect tree reports progress via notifications
This commit is contained in:
@@ -102,7 +102,11 @@ async function protectSubtree(req) {
|
||||
const note = await repository.getNote(noteId);
|
||||
const protect = !!parseInt(req.params.isProtected);
|
||||
|
||||
await noteService.protectNoteRecursively(note, protect);
|
||||
const taskContext = new TaskContext(utils.randomString(10), 'protect-notes', {protect});
|
||||
|
||||
await noteService.protectNoteRecursively(note, protect, taskContext);
|
||||
|
||||
taskContext.taskSucceeded();
|
||||
}
|
||||
|
||||
async function setNoteTypeMime(req) {
|
||||
|
||||
Reference in New Issue
Block a user