mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
disallow dropping notes before/after available/visible launchers
This commit is contained in:
@@ -439,6 +439,8 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
return false;
|
||||
} else if (node.data.noteType === 'launcher') {
|
||||
return ['before', 'after'];
|
||||
} else if (['_lbAvailableLaunchers', '_lbVisibleLaunchers'].includes(node.data.noteId)) {
|
||||
return ['over'];
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user