mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 16:26:31 +01:00
backend API to create a launcher
This commit is contained in:
@@ -157,7 +157,7 @@ class Branch extends AbstractEntity {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isWeak() {
|
||||
return ['share', 'lbBookmarks'].includes(this.parentNoteId);
|
||||
return ['_share', 'lbBookmarks'].includes(this.parentNoteId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -213,7 +213,7 @@ class Branch extends AbstractEntity {
|
||||
|
||||
// first delete children and then parent - this will show up better in recent changes
|
||||
|
||||
log.info("Deleting note " + note.noteId);
|
||||
log.info(`Deleting note ${note.noteId}`);
|
||||
|
||||
this.becca.notes[note.noteId].isBeingDeleted = true;
|
||||
|
||||
@@ -239,7 +239,7 @@ class Branch extends AbstractEntity {
|
||||
let maxNotePos = 0;
|
||||
|
||||
for (const childBranch of this.parentNote.getChildBranches()) {
|
||||
if (maxNotePos < childBranch.notePosition && childBranch.branchId !== 'hidden') {
|
||||
if (maxNotePos < childBranch.notePosition && childBranch.branchId !== '_hidden') {
|
||||
maxNotePos = childBranch.notePosition;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user