update yubikey options for ios

This commit is contained in:
kspearrin 2018-06-04 21:06:17 -04:00
parent 3f47ca645b
commit eefd9bf31c

View file

@ -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;