mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix broken sending expanded to server
This commit is contained in:
parent
16818e7583
commit
ab433b472e
@ -342,10 +342,10 @@ const noteTree = (function() {
|
|||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
expand: (event, data) => {
|
expand: (event, data) => {
|
||||||
setExpandedToServer(getNoteTreeIdFromKey(data.node.key), true);
|
setExpandedToServer(data.node.data.note_tree_id, true);
|
||||||
},
|
},
|
||||||
collapse: (event, data) => {
|
collapse: (event, data) => {
|
||||||
setExpandedToServer(getNoteTreeIdFromKey(data.node.key), false);
|
setExpandedToServer(data.node.data.note_tree_id, false);
|
||||||
},
|
},
|
||||||
init: (event, data) => {
|
init: (event, data) => {
|
||||||
if (startNoteTreeId) {
|
if (startNoteTreeId) {
|
||||||
@ -525,9 +525,7 @@ const noteTree = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setCurrentNoteTreeBasedOnProtectedStatus() {
|
function setCurrentNoteTreeBasedOnProtectedStatus() {
|
||||||
const node = getCurrentNode();
|
getCurrentClones().map(node => node.toggleClass("protected", !!node.data.is_protected));
|
||||||
|
|
||||||
node.toggleClass("protected", !!node.data.is_protected);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAutocompleteItems(parentNoteId, notePath, titlePath) {
|
function getAutocompleteItems(parentNoteId, notePath, titlePath) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user