From 9ec4050e4d520fff32228aec182f97fffc898e03 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Thu, 22 Jul 2021 07:56:39 +1000 Subject: [PATCH] Move remaining primary buttons in login flow (#1470) * Fix show/hide logic on Continue button * Fix bug in 2FA method selection modal * Move Log In button in SSO flow * Fix linting --- src/App/Pages/Accounts/LoginSsoPage.xaml | 5 ++++- src/App/Pages/Accounts/TwoFactorPageViewModel.cs | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/App/Pages/Accounts/LoginSsoPage.xaml b/src/App/Pages/Accounts/LoginSsoPage.xaml index e58b69df4..e0839497f 100644 --- a/src/App/Pages/Accounts/LoginSsoPage.xaml +++ b/src/App/Pages/Accounts/LoginSsoPage.xaml @@ -14,7 +14,6 @@ - @@ -36,6 +35,10 @@ ReturnCommand="{Binding LogInCommand}" /> + + + diff --git a/src/App/Pages/Accounts/TwoFactorPageViewModel.cs b/src/App/Pages/Accounts/TwoFactorPageViewModel.cs index 335d7981e..ca52832d1 100644 --- a/src/App/Pages/Accounts/TwoFactorPageViewModel.cs +++ b/src/App/Pages/Accounts/TwoFactorPageViewModel.cs @@ -33,6 +33,7 @@ namespace Bit.App.Pages private string _webVaultUrl = "https://vault.bitwarden.com"; private bool _authingWithSso = false; private bool _enableContinue = false; + private bool _showContinue = true; public TwoFactorPageViewModel() { @@ -74,7 +75,11 @@ namespace Bit.App.Pages public bool ShowTryAgain => YubikeyMethod && Device.RuntimePlatform == Device.iOS; - public bool ShowContinue { get; set; } + public bool ShowContinue + { + get => _showContinue; + set => SetProperty(ref _showContinue, value); + } public bool EnableContinue { @@ -247,7 +252,7 @@ namespace Bit.App.Pages { _platformUtilsService.LaunchUri("https://help.bitwarden.com/article/lost-two-step-device/"); } - else if (method != AppResources.Cancel) + else if (method != AppResources.Cancel && method != null) { var selected = supportedProviders.FirstOrDefault(p => p.Name == method)?.Type; if (selected == SelectedProviderType)