mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
#125, implementation of inheritable relations
This commit is contained in:
@@ -23,8 +23,17 @@ async function executeStartupBundles() {
|
||||
}
|
||||
}
|
||||
|
||||
async function executeRelationBundles(note, relationName) {
|
||||
const bundlesToRun = await server.get("script/relation/" + note.noteId + "/" + relationName);
|
||||
|
||||
for (const bundle of bundlesToRun) {
|
||||
await executeBundle(bundle, note);
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
executeBundle,
|
||||
getAndExecuteBundle,
|
||||
executeStartupBundles
|
||||
executeStartupBundles,
|
||||
executeRelationBundles
|
||||
}
|
||||
Reference in New Issue
Block a user