mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
update yubikey options for ios
This commit is contained in:
parent
3f47ca645b
commit
eefd9bf31c
1 changed files with 10 additions and 5 deletions
|
@ -260,7 +260,7 @@ namespace Bit.App.Pages
|
||||||
var table = new TwoFactorTable(section);
|
var table = new TwoFactorTable(section);
|
||||||
var layout = new RedrawableStackLayout
|
var layout = new RedrawableStackLayout
|
||||||
{
|
{
|
||||||
Children = { instruction, image, table, anotherMethodButton },
|
Children = { instruction, image, table },
|
||||||
Spacing = 0
|
Spacing = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -268,20 +268,25 @@ namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
var tryAgainButton = new ExtendedButton
|
var tryAgainButton = new ExtendedButton
|
||||||
{
|
{
|
||||||
Text = AppResources.UseAnotherTwoStepMethod,
|
Text = "Try Again",
|
||||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
||||||
Margin = new Thickness(15, 0, 15, 25),
|
Margin = new Thickness(15, 0, 15, 0),
|
||||||
Command = new Command(() => ListenYubiKey(true, true)),
|
Command = new Command(() => ListenYubiKey(true, true)),
|
||||||
Uppercase = false,
|
Uppercase = false,
|
||||||
BackgroundColor = Color.Transparent,
|
BackgroundColor = Color.Transparent,
|
||||||
VerticalOptions = LayoutOptions.Start
|
VerticalOptions = LayoutOptions.Start
|
||||||
};
|
};
|
||||||
layout.Children.Insert(3, tryAgainButton);
|
layout.Children.Add(tryAgainButton);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ToolbarItems.Add(continueToolbarItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
layout.Children.Add(anotherMethodButton);
|
||||||
|
|
||||||
table.WrappingStackLayout = () => layout;
|
table.WrappingStackLayout = () => layout;
|
||||||
scrollView.Content = layout;
|
scrollView.Content = layout;
|
||||||
ToolbarItems.Add(continueToolbarItem);
|
|
||||||
|
|
||||||
Title = AppResources.YubiKeyTitle;
|
Title = AppResources.YubiKeyTitle;
|
||||||
Content = scrollView;
|
Content = scrollView;
|
||||||
|
|
Loading…
Reference in a new issue