mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
synchronization of transactions using promise so only one can be active
This commit is contained in:
@@ -12,9 +12,9 @@ const treeChanges = (function() {
|
||||
|
||||
if (changeInPath) {
|
||||
recentNotes.removeRecentNote(noteTree.getCurrentNotePath());
|
||||
}
|
||||
|
||||
noteTree.setCurrentNotePathToHash(node);
|
||||
noteTree.setCurrentNotePathToHash(node);
|
||||
}
|
||||
}
|
||||
|
||||
async function moveAfterNode(node, afterNode, changeInPath = true) {
|
||||
@@ -28,9 +28,9 @@ const treeChanges = (function() {
|
||||
|
||||
if (changeInPath) {
|
||||
recentNotes.removeRecentNote(noteTree.getCurrentNotePath());
|
||||
}
|
||||
|
||||
noteTree.setCurrentNotePathToHash(node);
|
||||
noteTree.setCurrentNotePathToHash(node);
|
||||
}
|
||||
}
|
||||
|
||||
// beware that first arg is noteId and second is noteTreeId!
|
||||
|
||||
Reference in New Issue
Block a user