attributes can be inherited through special relation "inheritAttributes"

This commit is contained in:
azivner
2018-08-13 17:05:16 +02:00
parent b0ed790edf
commit ddbd4f73c8
4 changed files with 31 additions and 36 deletions

View File

@@ -20,7 +20,8 @@ const BUILTIN_ATTRIBUTES = [
// relation names
{ type: 'relation', name: 'runOnNoteView' },
{ type: 'relation', name: 'runOnNoteTitleChange' },
{ type: 'relation', name: 'runOnAttributeChange' }
{ type: 'relation', name: 'runOnAttributeChange' },
{ type: 'relation', name: 'inheritAttributes' }
];
async function getNotesWithLabel(name, value) {