use [protected] for protected notes in the export

This commit is contained in:
zadam
2022-01-08 21:50:16 +01:00
parent b90ba3d1a9
commit d4d48f3834
5 changed files with 13 additions and 15 deletions

View File

@@ -131,6 +131,10 @@ class Note extends AbstractEntity {
|| protectedSessionService.isProtectedSessionAvailable()
}
getTitleOrProtected() {
return this.isContentAvailable() ? this.title : '[protected]';
}
/** @returns {Branch[]} */
getParentBranches() {
return this.parentBranches;