implemented "targetRelationCount" and exposed more of them in order by widget, fixes #1658

This commit is contained in:
zadam
2021-02-19 20:42:34 +01:00
parent 2cfd093cae
commit 4160da70be
5 changed files with 49 additions and 0 deletions

View File

@@ -46,6 +46,10 @@ class Attribute {
|| (this.type === 'relation' && this.name === 'template');
}
isAutoLink() {
return this.type === 'relation' && ['internalLink', 'imageLink', 'relationMapLink', 'includeNoteLink'].includes(this.name);
}
get note() {
return this.noteCache.notes[this.noteId];
}