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: add toasts in email verification dialog (#9584)
01zulfi36c44ad20120
diff --git a/apps/web/src/dialogs/email-verification-dialog.tsx b/apps/web/src/dialogs/email-verification-dialog.tsxindex e504994b8..62fc1913f 100644--- a/apps/web/src/dialogs/email-verification-dialog.tsx+++ b/apps/web/src/dialogs/email-verification-dialog.tsx@@ -27,6 +27,7 @@ import { useSessionState } from "../hooks/use-session-state";import Accordion from "../components/accordion";import { BaseDialogProps, DialogManager } from "../common/dialog-manager";import { strings } from "@notesnook/intl";+import { showToast } from "../utils/toast";let interval = 0;type EmailVerificationDialogProps = BaseDialogProps<boolean>;@@ -76,8 +77,10 @@ export const EmailVerificationDialog = DialogManager.register(try {await db.user.sendVerificationEmail();setCanSendAgain(false);+ showToast("success", strings.confirmationEmailSent());} catch (e) {console.error(e);+ showToast("error", strings.somethingWentWrong());} finally {setIsSending(false);}diff --git a/packages/intl/locale/en.po b/packages/intl/locale/en.poindex 1aec800ed..f34554e66 100644--- a/packages/intl/locale/en.po+++ b/packages/intl/locale/en.po@@ -1765,6 +1765,10 @@ msgstr "Confirm password"msgid "Confirm pin"msgstr "Confirm pin"+#: src/strings.ts:2639+msgid "Confirmation email sent"+msgstr "Confirmation email sent"+#: src/strings.ts:2080msgid "Congratulations!"msgstr "Congratulations!"diff --git a/packages/intl/locale/pseudo-LOCALE.po b/packages/intl/locale/pseudo-LOCALE.poindex 30e87d8e2..eb92d23cd 100644--- a/packages/intl/locale/pseudo-LOCALE.po+++ b/packages/intl/locale/pseudo-LOCALE.po@@ -1754,6 +1754,10 @@ msgstr ""msgid "Confirm pin"msgstr ""+#: src/strings.ts:2639+msgid "Confirmation email sent"+msgstr ""+#: src/strings.ts:2080msgid "Congratulations!"msgstr ""diff --git a/packages/intl/src/strings.ts b/packages/intl/src/strings.tsindex 84b8211f0..9fb0a4ad8 100644--- a/packages/intl/src/strings.ts+++ b/packages/intl/src/strings.ts@@ -2635,5 +2635,6 @@ Use this if changes from other devices are not appearing on this device. This winoContent: () => t`This note is empty`,deleteData: () => t`Delete data`,failedToAttachFile: () => t`Failed to attach file`,- unlockNoteToMergeConflicts: () => t`Unlock note to merge conflicts`+ unlockNoteToMergeConflicts: () => t`Unlock note to merge conflicts`,+ confirmationEmailSent: () => t`Confirmation email sent`};