add #shareRoot label to define an "index" note, closes #2567

This commit is contained in:
zadam
2022-01-17 23:13:56 +01:00
parent 1aff3db81f
commit 52b118df7f
12 changed files with 115 additions and 84 deletions

View File

@@ -406,6 +406,10 @@ class Note extends AbstractEntity {
}
get shareId() {
if (this.hasOwnedLabel('shareRoot')) {
return "";
}
const sharedAlias = this.getOwnedLabelValue("shareAlias");
return sharedAlias || this.noteId;