From b72314bc935b8445293c0d780b13319516b057fb Mon Sep 17 00:00:00 2001 From: Thomas Rittson Date: Tue, 11 May 2021 15:24:11 +1000 Subject: [PATCH] Explain how to verify email for file Sends --- src/App/Pages/Send/SendAddEditPageViewModel.cs | 15 ++++++++++++--- src/App/Resources/AppResources.resx | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/App/Pages/Send/SendAddEditPageViewModel.cs b/src/App/Pages/Send/SendAddEditPageViewModel.cs index d9e69e845..e4de742c0 100644 --- a/src/App/Pages/Send/SendAddEditPageViewModel.cs +++ b/src/App/Pages/Send/SendAddEditPageViewModel.cs @@ -45,7 +45,6 @@ namespace Bit.App.Pages }; private bool _disableHideEmail; private bool _sendOptionsPolicyInEffect; - private bool _disableHideEmailControl; public SendAddEditPageViewModel() { @@ -344,7 +343,7 @@ namespace Bit.App.Pages } if (!_emailVerified) { - await _platformUtilsService.ShowDialogAsync(AppResources.SendFileEmailVerificationRequired); + verifyEmailPrompt(); return false; } if (!EditMode) @@ -475,7 +474,7 @@ namespace Bit.App.Pages } else if (!_emailVerified) { - await _platformUtilsService.ShowDialogAsync(AppResources.SendFileEmailVerificationRequired); + verifyEmailPrompt(); } if (IsAddFromShare && Device.RuntimePlatform == Device.Android) @@ -609,5 +608,15 @@ namespace Bit.App.Pages DateTimeKind.Local ); } + + private async void verifyEmailPrompt() + { + var confirmed = await _platformUtilsService.ShowDialogAsync(AppResources.SendFileEmailVerificationRequired, null, + AppResources.Yes, AppResources.Cancel); + if (confirmed) + { + _platformUtilsService.LaunchUri("https://bitwarden.com/help/article/create-bitwarden-account/#verify-your-email"); + } + } } } diff --git a/src/App/Resources/AppResources.resx b/src/App/Resources/AppResources.resx index 419efc43c..19c489fea 100644 --- a/src/App/Resources/AppResources.resx +++ b/src/App/Resources/AppResources.resx @@ -1984,7 +1984,7 @@ 'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated. - You must verify your email to use files with Send. + You must verify your email to use files with Send. You can verify your email in the bitwarden.com web vault. Do you want to visit the website now? 'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated.