try again button for ios yubikey

This commit is contained in:
Kyle Spearrin 2018-05-24 22:43:59 -04:00
parent 2e5ba0335d
commit 22a0045796

View file

@ -264,6 +264,21 @@ namespace Bit.App.Pages
Spacing = 0 Spacing = 0
}; };
if(Device.RuntimePlatform == Device.iOS)
{
var tryAgainButton = new ExtendedButton
{
Text = AppResources.UseAnotherTwoStepMethod,
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
Margin = new Thickness(15, 0, 15, 25),
Command = new Command(() => ListenYubiKey(true, true)),
Uppercase = false,
BackgroundColor = Color.Transparent,
VerticalOptions = LayoutOptions.Start
};
layout.Children.Insert(3, tryAgainButton);
}
table.WrappingStackLayout = () => layout; table.WrappingStackLayout = () => layout;
scrollView.Content = layout; scrollView.Content = layout;
ToolbarItems.Add(continueToolbarItem); ToolbarItems.Add(continueToolbarItem);