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
web: improve wording of notes deletion confirm dialog when deleting notebook/topic
Abdullah Attad1072059c53e
diff --git a/apps/web/src/components/notebook/index.js b/apps/web/src/components/notebook/index.jsindex d381764d4..60c2c1021 100644--- a/apps/web/src/components/notebook/index.js+++ b/apps/web/src/components/notebook/index.js@@ -151,11 +151,10 @@ const menuItems = [iconColor: "error",icon: Icon.Trash,onClick: async ({ items }) => {+ const phrase = items.length > 1 ? "this notebook" : "these notebooks";const shouldDeleteNotes = await confirm({- title: `Delete contained notes?`,- message: `Do you also want to delete notes within ${- items.length > 1 ? "this notebook" : "these notebooks"- }?`,+ title: `Delete notes in ${phrase}?`,+ message: `These notes will be moved to trash and permanently deleted after 7 days.`,yesText: `Yes`,noText: "No"});diff --git a/apps/web/src/components/topic/index.js b/apps/web/src/components/topic/index.jsindex 1fcdc0223..1d0dc70c4 100644--- a/apps/web/src/components/topic/index.js+++ b/apps/web/src/components/topic/index.js@@ -89,11 +89,10 @@ const menuItems = [color: "error",iconColor: "error",onClick: async ({ items, notebookId }) => {- const shouldDeleteNotes = confirm({- title: `Delete contained notes?`,- message: `Do you also want to delete notes within ${- items.length > 1 ? "this topic" : "these topics"- }?`,+ const phrase = items.length > 1 ? "this topic" : "these topics";+ const shouldDeleteNotes = await confirm({+ title: `Delete notes in ${phrase}?`,+ message: `These notes will be moved to trash and permanently deleted after 7 days.`,yesText: `Yes`,noText: "No"});