diff --git a/src/becca/entities/note.js b/src/becca/entities/note.js index 383ad611e..ca4cf174d 100644 --- a/src/becca/entities/note.js +++ b/src/becca/entities/note.js @@ -674,6 +674,16 @@ class Note extends AbstractEntity { } } + getRelationDefinitions() { + return this.getLabels() + .filter(l => l.name.startsWith("relation:")); + } + + getLabelDefinitions() { + return this.getLabels() + .filter(l => l.name.startsWith("relation:")); + } + isTemplate() { return !!this.targetRelations.find(rel => rel.name === 'template'); } diff --git a/src/public/app/widgets/type_widgets/relation_map.js b/src/public/app/widgets/type_widgets/relation_map.js index c7bab991a..13afee3fd 100644 --- a/src/public/app/widgets/type_widgets/relation_map.js +++ b/src/public/app/widgets/type_widgets/relation_map.js @@ -75,7 +75,7 @@ const TPL = ` + style="right: 100px;">