mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 23:05:51 +01:00
refactor(client): use common method for checking if launch bar config
This commit is contained in:
@@ -392,7 +392,8 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
autoExpandMS: 600,
|
||||
preventLazyParents: false,
|
||||
dragStart: (node, data) => {
|
||||
if (['root', '_hidden', '_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers', "_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers" ].includes(node.data.noteId)
|
||||
if (node.data.noteId === "root"
|
||||
|| utils.isLaunchBarConfig(node.data.noteId)
|
||||
|| node.data.noteId.startsWith("_options")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user