mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fixing encrypt / decrypt subtree
This commit is contained in:
@@ -152,6 +152,8 @@ const protected_session = (function() {
|
||||
}
|
||||
|
||||
async function protectSubTree(noteId, protect) {
|
||||
await ensureProtectedSession(true, true);
|
||||
|
||||
await $.ajax({
|
||||
url: baseApiUrl + 'tree/' + noteId + "/protectSubTree/" + (protect ? 1 : 0),
|
||||
type: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user