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
1 changed files with 15 additions and 0 deletions

View File

@ -264,6 +264,21 @@ namespace Bit.App.Pages
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;
scrollView.Content = layout;
ToolbarItems.Add(continueToolbarItem);