mirror of
https://github.com/zadam/trilium.git
synced 2025-02-22 22:13:07 +08:00
fix relation map
This commit is contained in:
parent
855b876d50
commit
9216e430db
2 changed files with 11 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue