mirror of
https://github.com/zadam/trilium.git
synced 2025-01-27 09:29:43 +08:00
fix broken sending expanded to server
This commit is contained in:
parent
16818e7583
commit
ab433b472e
1 changed files with 3 additions and 5 deletions
|
@ -342,10 +342,10 @@ const noteTree = (function() {
|
|||
return false;
|
||||
},
|
||||
expand: (event, data) => {
|
||||
setExpandedToServer(getNoteTreeIdFromKey(data.node.key), true);
|
||||
setExpandedToServer(data.node.data.note_tree_id, true);
|
||||
},
|
||||
collapse: (event, data) => {
|
||||
setExpandedToServer(getNoteTreeIdFromKey(data.node.key), false);
|
||||
setExpandedToServer(data.node.data.note_tree_id, false);
|
||||
},
|
||||
init: (event, data) => {
|
||||
if (startNoteTreeId) {
|
||||
|
@ -525,9 +525,7 @@ const noteTree = (function() {
|
|||
}
|
||||
|
||||
function setCurrentNoteTreeBasedOnProtectedStatus() {
|
||||
const node = getCurrentNode();
|
||||
|
||||
node.toggleClass("protected", !!node.data.is_protected);
|
||||
getCurrentClones().map(node => node.toggleClass("protected", !!node.data.is_protected));
|
||||
}
|
||||
|
||||
function getAutocompleteItems(parentNoteId, notePath, titlePath) {
|
||||
|
|
Loading…
Reference in a new issue