use relations to pick note to render, fixes #141

This commit is contained in:
azivner
2018-08-28 20:55:21 +02:00
parent 9cfa2ab1ba
commit 7ae2a24770
6 changed files with 61 additions and 70 deletions

View File

@@ -25,7 +25,8 @@ const BUILTIN_ATTRIBUTES = [
{ type: 'relation', name: 'runOnChildNoteCreation' },
{ type: 'relation', name: 'runOnAttributeCreation' },
{ type: 'relation', name: 'runOnAttributeChange' },
{ type: 'relation', name: 'template' }
{ type: 'relation', name: 'template' },
{ type: 'relation', name: 'renderNote' }
];
async function getNotesWithLabel(name, value) {