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

@@ -71,14 +71,7 @@ function getNoteTitle(childNoteId, parentNoteId) {
return "[error fetching title]";
}
let title;
if (childNote.isProtected) {
title = protectedSessionService.isProtectedSessionAvailable() ? childNote.title : '[protected]';
}
else {
title = childNote.title;
}
const title = childNote.getTitleOrProtected();
const branch = parentNote ? becca.getBranchFromChildAndParent(childNote.noteId, parentNote.noteId) : null;