mirror of
https://github.com/bitwarden/mobile
synced 2025-12-20 02:03:49 +00:00
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
This commit is contained in:
@@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
<ContentPage.ToolbarItems>
|
<ContentPage.ToolbarItems>
|
||||||
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1" />
|
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1" />
|
||||||
<ToolbarItem Text="{u:I18n LogIn}" Clicked="LogIn_Clicked" />
|
|
||||||
</ContentPage.ToolbarItems>
|
</ContentPage.ToolbarItems>
|
||||||
|
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
@@ -36,6 +35,10 @@
|
|||||||
ReturnCommand="{Binding LogInCommand}" />
|
ReturnCommand="{Binding LogInCommand}" />
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
|
<StackLayout Padding="10, 0">
|
||||||
|
<Button Text="{u:I18n LogIn}"
|
||||||
|
Clicked="LogIn_Clicked"></Button>
|
||||||
|
</StackLayout>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ namespace Bit.App.Pages
|
|||||||
private string _webVaultUrl = "https://vault.bitwarden.com";
|
private string _webVaultUrl = "https://vault.bitwarden.com";
|
||||||
private bool _authingWithSso = false;
|
private bool _authingWithSso = false;
|
||||||
private bool _enableContinue = false;
|
private bool _enableContinue = false;
|
||||||
|
private bool _showContinue = true;
|
||||||
|
|
||||||
public TwoFactorPageViewModel()
|
public TwoFactorPageViewModel()
|
||||||
{
|
{
|
||||||
@@ -74,7 +75,11 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
public bool ShowTryAgain => YubikeyMethod && Device.RuntimePlatform == Device.iOS;
|
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
|
public bool EnableContinue
|
||||||
{
|
{
|
||||||
@@ -247,7 +252,7 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
_platformUtilsService.LaunchUri("https://help.bitwarden.com/article/lost-two-step-device/");
|
_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;
|
var selected = supportedProviders.FirstOrDefault(p => p.Name == method)?.Type;
|
||||||
if (selected == SelectedProviderType)
|
if (selected == SelectedProviderType)
|
||||||
|
|||||||
Reference in New Issue
Block a user