1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-16 10:35:27 +01:00

PS-70 Added label on top of button to solve UI bug.

This commit is contained in:
André Bispo 2022-06-23 11:31:50 +01:00
parent 9ddbe400f8
commit 6aeec4a89a
2 changed files with 12 additions and 1 deletions

View File

@ -192,12 +192,22 @@
Grid.Row="0"
Grid.Column="0" />
<Button
Text="{Binding SetupTotpText}"
IsVisible="{Binding HasTotpValue, Converter={StaticResource inverseBool}}"
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="3"
Clicked="ScanTotp_Clicked"/>
<controls:IconLabel
Text="{Binding SetupTotpText}"
IsVisible="{Binding HasTotpValue, Converter={StaticResource inverseBool}}"
Margin="0,5,0,0"
HorizontalOptions="Center"
VerticalOptions="FillAndExpand"
VerticalTextAlignment="Center"
Padding="0"
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="3" />
<controls:MonoEntry
x:Name="_loginTotpEntry"
Text="{Binding Cipher.Login.Totp}"

View File

@ -864,6 +864,7 @@ namespace Bit.App.Pages
await _platformUtilsService.ShowDialogAsync(AppResources.PasswordSafe);
}
}
private async void CopyTotpClipboard()
{
await _clipboardService.CopyTextAsync(_cipher.Login.Totp);