Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix relation map
zadam9216e430db62
diff --git a/src/becca/entities/note.js b/src/becca/entities/note.jsindex 383ad611e7..ca4cf174dc 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.jsindex c7bab991a8..13afee3fd7 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 = `<button type="button"class="relation-map-reset-pan-zoom btn icon-button floating-button bx bx-crop no-print"title="Reset pan & zoom to initial coordinates and magnification"- style="right: 70px;"></button>+ style="right: 100px;"></button><div class="btn-group floating-button no-print" style="right: 10px;"><button type="button"