fix relation map

This commit is contained in:
zadam 2021-06-03 12:32:48 +02:00
parent 855b876d50
commit 9216e430db
2 changed files with 11 additions and 1 deletions

View file

@ -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');
}

View file

@ -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"