mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
hide yubikey token cell for ios
This commit is contained in:
parent
3315704c14
commit
2e5ba0335d
@ -244,16 +244,20 @@ namespace Bit.App.Pages
|
||||
Margin = new Thickness(0, 0, 0, 25)
|
||||
};
|
||||
|
||||
TokenCell = new FormEntryCell("", isPassword: true, imageSource: "lock", useLabelAsPlaceholder: true);
|
||||
TokenCell.Entry.ReturnType = ReturnType.Go;
|
||||
var section = new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
RememberCell
|
||||
};
|
||||
|
||||
var table = new TwoFactorTable(
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
TokenCell,
|
||||
RememberCell
|
||||
});
|
||||
if(Device.RuntimePlatform != Device.iOS)
|
||||
{
|
||||
TokenCell = new FormEntryCell("", isPassword: true, imageSource: "lock",
|
||||
useLabelAsPlaceholder: true);
|
||||
TokenCell.Entry.ReturnType = ReturnType.Go;
|
||||
section.Insert(0, TokenCell);
|
||||
}
|
||||
|
||||
var table = new TwoFactorTable(section);
|
||||
var layout = new RedrawableStackLayout
|
||||
{
|
||||
Children = { instruction, image, table, anotherMethodButton },
|
||||
|
Loading…
Reference in New Issue
Block a user