Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(client): add support for mobile launchers in hidden subtree
Elian Dorancfeb4eb51f5f
diff --git a/src/public/app/entities/fnote.ts b/src/public/app/entities/fnote.tsindex f0b28fc4dd..6f4a580058 100644--- a/src/public/app/entities/fnote.ts+++ b/src/public/app/entities/fnote.ts@@ -983,7 +983,7 @@ class FNote {}isLaunchBarConfig() {- return this.type === 'launcher' || ['_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers'].includes(this.noteId);+ return this.type === 'launcher' || ['_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers', "_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers" ].includes(this.noteId);}isOptions() {diff --git a/src/public/app/services/branches.ts b/src/public/app/services/branches.tsindex 6eb5c07ff0..9c2e66b1a3 100644--- a/src/public/app/services/branches.ts+++ b/src/public/app/services/branches.ts@@ -24,7 +24,7 @@ async function moveBeforeBranch(branchIdsToMove: string[], beforeBranchId: strinreturn;}- if (['root', '_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers'].includes(beforeBranch.noteId)) {+ if (['root', '_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers', "_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers" ].includes(beforeBranch.noteId)) {toastService.showError(t("branches.cannot-move-notes-here"));return;}diff --git a/src/public/app/widgets/note_title.js b/src/public/app/widgets/note_title.jsindex 7164e3aa1d..ff943ac1a7 100644--- a/src/public/app/widgets/note_title.js+++ b/src/public/app/widgets/note_title.js@@ -14,7 +14,7 @@ const TPL = `flex-grow: 1000;height: 100%;}-+.note-title-widget input.note-title {font-size: 180%;border: 0;@@ -22,7 +22,7 @@ const TPL = `min-width: 5em;width: 100%;}-+.note-title-widget input.note-title.protected {text-shadow: 4px 4px 4px var(--muted-text-color);}@@ -73,7 +73,7 @@ export default class NoteTitleWidget extends NoteContextAwareWidget {async refreshWithNote(note) {const isReadOnly = (note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable())- || ['_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers'].includes(note.noteId)+ || ['_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers', "_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers" ].includes(note.noteId)|| this.noteContext.viewScope.viewMode !== 'default';this.$noteTitle.val(diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex cf5b8067e3..f5a1e821b7 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -392,7 +392,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {autoExpandMS: 600,preventLazyParents: false,dragStart: (node, data) => {- if (['root', '_hidden', '_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers'].includes(node.data.noteId)+ if (['root', '_hidden', '_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers', "_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers" ].includes(node.data.noteId)|| node.data.noteId.startsWith("_options")) {return false;}