mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
added runOnBranchChange event #4108
This commit is contained in:
@@ -65,6 +65,12 @@ eventService.subscribe(eventService.ENTITY_CHANGED, ({entityName, entity}) => {
|
||||
if (parentNote?.hasLabel("sorted")) {
|
||||
treeService.sortNotesIfNeeded(parentNote.noteId);
|
||||
}
|
||||
|
||||
const childNote = becca.getNote(entity.noteId);
|
||||
|
||||
if (childNote) {
|
||||
runAttachedRelations(childNote, 'runOnBranchChange', entity);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user