launchbar WIP

This commit is contained in:
zadam
2022-08-08 23:13:31 +02:00
parent df7c089344
commit 2694bcff67
10 changed files with 45 additions and 6 deletions

View File

@@ -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 };
}