mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
don't allow deleting hoisted note + other related fixes, closes #488
This commit is contained in:
@@ -86,10 +86,10 @@ $("#note-menu-button").click(async e => {
|
||||
enabled: isNotRoot && parentNote.type !== 'search' }
|
||||
];
|
||||
|
||||
contextMenuWidget.initContextMenu(e, items, (event, cmd) => {
|
||||
contextMenuWidget.initContextMenu(e, items, async (event, cmd) => {
|
||||
if (cmd === "insertNoteAfter") {
|
||||
const parentNoteId = node.data.parentNoteId;
|
||||
const isProtected = treeUtils.getParentProtectedStatus(node);
|
||||
const isProtected = await treeUtils.getParentProtectedStatus(node);
|
||||
|
||||
treeService.createNote(node, parentNoteId, 'after', { isProtected: isProtected });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user