mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 19:52:28 +08:00
feat(client): add support for mobile launchers in hidden subtree
This commit is contained in:
parent
100a80c17d
commit
cfeb4eb51f
@ -983,7 +983,7 @@ class FNote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isLaunchBarConfig() {
|
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() {
|
isOptions() {
|
||||||
|
@ -24,7 +24,7 @@ async function moveBeforeBranch(branchIdsToMove: string[], beforeBranchId: strin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
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"));
|
toastService.showError(t("branches.cannot-move-notes-here"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ export default class NoteTitleWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
async refreshWithNote(note) {
|
async refreshWithNote(note) {
|
||||||
const isReadOnly = (note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable())
|
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.noteContext.viewScope.viewMode !== 'default';
|
||||||
|
|
||||||
this.$noteTitle.val(
|
this.$noteTitle.val(
|
||||||
|
@ -392,7 +392,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
|||||||
autoExpandMS: 600,
|
autoExpandMS: 600,
|
||||||
preventLazyParents: false,
|
preventLazyParents: false,
|
||||||
dragStart: (node, data) => {
|
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")) {
|
|| node.data.noteId.startsWith("_options")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user