mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
changes in API format
This commit is contained in:
@@ -119,10 +119,10 @@ async function unprotectNoteAndSendToServer() {
|
||||
noteDetail.setNoteBackgroundIfProtected(note);
|
||||
}
|
||||
|
||||
async function protectSubTree(noteId, protect) {
|
||||
async function protectBranch(noteId, protect) {
|
||||
await ensureProtectedSession(true, true);
|
||||
|
||||
await server.put('notes/' + noteId + "/protect-sub-tree/" + (protect ? 1 : 0));
|
||||
await server.put('notes/' + noteId + "/protect/" + (protect ? 1 : 0));
|
||||
|
||||
infoService.showMessage("Request to un/protect sub tree has finished successfully");
|
||||
|
||||
@@ -143,6 +143,6 @@ export default {
|
||||
ensureProtectedSession,
|
||||
protectNoteAndSendToServer,
|
||||
unprotectNoteAndSendToServer,
|
||||
protectSubTree,
|
||||
protectBranch,
|
||||
ensureDialogIsClosed
|
||||
};
|
||||
Reference in New Issue
Block a user