Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix(ui): multi select delete dialog title is always wrong

thecodrr80c73b10b5c2
diff --git a/apps/web/src/common/dialogcontroller.js b/apps/web/src/common/dialogcontroller.js
index 227002786..8cca78383 100644
--- a/apps/web/src/common/dialogcontroller.js
+++ b/apps/web/src/common/dialogcontroller.js
@@ -121,7 +121,7 @@ export function confirm(
}
export function showMultiDeleteConfirmation(type) {
- let noun = type === "note" ? "Notes" : "Notebooks";
+ let noun = type === "note" ? "notes" : "notebooks";
return confirm(Icon.Trash, {
title: `Delete these ${noun}?`,
diff --git a/apps/web/src/common/selectionoptions.js b/apps/web/src/common/selectionoptions.js
index 0ab35d628..19a972e3b 100644
--- a/apps/web/src/common/selectionoptions.js
+++ b/apps/web/src/common/selectionoptions.js
@@ -31,7 +31,7 @@ const DeleteOption = createOption(
async function (state) {
const item = state.selectedItems[0];
- if (!(await showMultiDeleteConfirmation(item.type))) return;
+ if (!(await showMultiDeleteConfirmation(item.itemType))) return;
var isAnyNoteOpened = false;
const items = state.selectedItems.map((item) => {