From a591c4d4578d4be682866fe44e339d8f6c7ae2ca Mon Sep 17 00:00:00 2001 From: Thomas Rittson Date: Wed, 12 May 2021 13:35:18 +1000 Subject: [PATCH] Explain how to verify email for Sends --- src/_locales/en/messages.json | 6 ++++++ src/background/runtime.background.ts | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index e8680172b2..5e1c791026 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -1718,5 +1718,11 @@ }, "passwordConfirmationDesc": { "message": "This action is protected. To continue, please re-enter your master password to verify your identity." + }, + "emailVerificationRequired": { + "message": "Email Verification Required" + }, + "emailVerificationRequiredDesc": { + "message": "You must verify your email to use this feature. You can verify your email in the web vault." } } diff --git a/src/background/runtime.background.ts b/src/background/runtime.background.ts index 81549215ee..55341140a5 100644 --- a/src/background/runtime.background.ts +++ b/src/background/runtime.background.ts @@ -192,6 +192,15 @@ export default class RuntimeBackground { case 'reloadPopup': this.messagingService.send('reloadPopup'); break; + case 'emailVerificationRequired': + this.messagingService.send('showDialog', { + dialogId: 'emailVerificationRequired', + title: this.i18nService.t('emailVerificationRequired'), + text: this.i18nService.t('emailVerificationRequiredDesc'), + confirmText: this.i18nService.t('ok'), + type: 'info', + }); + break; default: break; }