mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
launchbar WIP
This commit is contained in:
@@ -58,6 +58,16 @@ function validateParentChild(parentNoteId, childNoteId, branchId = null) {
|
||||
};
|
||||
}
|
||||
|
||||
const parentNoteIsShortcut = becca.getNote(parentNoteId).type === 'shortcut';
|
||||
const childNoteIsShortcut = becca.getNote(childNoteId).type === 'shortcut';
|
||||
|
||||
if (parentNoteIsShortcut !== childNoteIsShortcut) {
|
||||
return {
|
||||
success: false,
|
||||
message: 'Moving/cloning is not possible between shortcuts / normal notes.'
|
||||
};
|
||||
}
|
||||
|
||||
return { success: true };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user