web: disable deleting locked notes (#2244)

This commit is contained in:
Muhammad Ali
2023-04-04 16:24:28 +05:00
committed by GitHub
parent b18cf277f6
commit adf546f29c

View File

@@ -480,6 +480,9 @@ const menuItems = [
if (db.monographs.isPublished(items[0].id))
return "Please unpublish this note to move it to trash";
if (items[0].locked)
return "Please unlock this note to move it to trash.";
},
onClick: async ({ items }) => {
await Multiselect.moveNotesToTrash(items, items.length > 1);