mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: disable deleting locked notes (#2244)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user