share functionality WIP

This commit is contained in:
zadam
2021-12-07 23:03:49 +01:00
parent 08e8047d8a
commit ab550a1e8d
5 changed files with 41 additions and 8 deletions

View File

@@ -201,12 +201,29 @@ function getHoistedNote() {
return becca.getNote(cls.getHoistedNoteId());
}
function getShareRoot() {
let shareRoot = becca.getNote('share');
if (!shareRoot) {
shareRoot = noteService.createNewNote({
noteId: 'share',
title: 'share',
type: 'text',
content: '',
parentNoteId: getHiddenRoot().noteId
}).note;
}
return shareRoot;
}
function createMissingSpecialNotes() {
getSinglesNoteRoot();
getSqlConsoleRoot();
getSinglesNoteRoot();
getSinglesNoteRoot();
getGlobalNoteMap();
getShareRoot();
const hidden = getHiddenRoot();