link map WIP

This commit is contained in:
zadam
2021-05-31 23:38:47 +02:00
parent bdff1c1246
commit e48bbe5b19
4 changed files with 140 additions and 89 deletions

View File

@@ -56,6 +56,10 @@ class Attribute extends AbstractEntity {
|| (this.type === 'relation' && this.name === 'template');
}
get targetNoteId() { // alias
return this.type === 'relation' ? this.value : undefined;
}
isAutoLink() {
return this.type === 'relation' && ['internalLink', 'imageLink', 'relationMapLink', 'includeNoteLink'].includes(this.name);
}