mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 19:51:57 +08:00
disallow dropping notes before/after available/visible launchers
This commit is contained in:
parent
bff33932d9
commit
1d1e6ae782
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue