A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: remove locked note deletion from multiselect
thecodrrf4702eeafbb4
diff --git a/apps/web/src/common/selectionoptions.js b/apps/web/src/common/selectionoptions.jsindex 7381329f3..b6222fcfa 100644--- a/apps/web/src/common/selectionoptions.js+++ b/apps/web/src/common/selectionoptions.js@@ -32,22 +32,7 @@ const DeleteOption = createOption(Icon.Trash2, async function(state) {const editorState = editorStore.getState();const items = state.selectedItems.map(async item => {if (item.id === editorState.session.id) isAnyNoteOpened = true;- if (item.locked) {- if (- !(await confirm(- Icon.Trash2,- "Delete",- "This is a locked note. Are you sure you want to delete it?"- )) ||- !(await showPasswordDialog("unlock_note", password => {- return db.vault- .unlock(password)- .then(() => true)- .catch(() => false);- }))- )- return 0;- }+ if (item.locked) return 0;return item.id;});