mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
Fix icon update on verify code view (#1728)
This commit is contained in:
parent
4e7ceaf5b5
commit
939db8ebe0
2 changed files with 3 additions and 2 deletions
|
@ -62,7 +62,7 @@
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
ReturnType="Go"
|
ReturnType="Go"
|
||||||
ReturnCommand="{Binding MainActionCommand}" />
|
ReturnCommand="{Binding MainActionCommand}" />
|
||||||
<controls:FaButton
|
<controls:IconButton
|
||||||
StyleClass="box-row-button, box-row-button-platform"
|
StyleClass="box-row-button, box-row-button-platform"
|
||||||
Text="{Binding ShowPasswordIcon}"
|
Text="{Binding ShowPasswordIcon}"
|
||||||
Command="{Binding TogglePasswordCommand}"
|
Command="{Binding TogglePasswordCommand}"
|
||||||
|
|
|
@ -9,6 +9,7 @@ using Xamarin.Forms;
|
||||||
using Xamarin.CommunityToolkit.ObjectModel;
|
using Xamarin.CommunityToolkit.ObjectModel;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using Bit.App.Utilities;
|
using Bit.App.Utilities;
|
||||||
|
using Bit.Core;
|
||||||
#if !FDROID
|
#if !FDROID
|
||||||
using Microsoft.AppCenter.Crashes;
|
using Microsoft.AppCenter.Crashes;
|
||||||
#endif
|
#endif
|
||||||
|
@ -72,7 +73,7 @@ namespace Bit.App.Pages
|
||||||
|
|
||||||
public ICommand RequestOTPCommand { get; }
|
public ICommand RequestOTPCommand { get; }
|
||||||
|
|
||||||
public string ShowPasswordIcon => ShowPassword ? "" : "";
|
public string ShowPasswordIcon => ShowPassword ? BitwardenIcons.EyeSlash : BitwardenIcons.Eye;
|
||||||
|
|
||||||
public void TogglePassword() => ShowPassword = !ShowPassword;
|
public void TogglePassword() => ShowPassword = !ShowPassword;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue