1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

return commands on login page

This commit is contained in:
Kyle Spearrin 2019-05-31 12:02:40 -04:00
parent dd090b0ed9
commit 61be796c76
3 changed files with 8 additions and 1 deletions

View File

@ -56,7 +56,9 @@
StyleClass="box-value"
IsPassword="{Binding ShowPassword, Converter={StaticResource inverseBool}}"
Grid.Row="1"
Grid.Column="0" />
Grid.Column="0"
ReturnType="Go"
ReturnCommand="{Binding LogInCommand}" />
<controls:FaButton
StyleClass="box-row-button, box-row-button-platform"
Text="{Binding ShowPasswordIcon}"

View File

@ -13,6 +13,9 @@ namespace Bit.App.Pages
_vm = BindingContext as LoginPageViewModel;
_vm.Page = this;
MasterPasswordEntry = _masterPassword;
_email.ReturnType = ReturnType.Next;
_email.ReturnCommand = new Command(() => _masterPassword.Focus());
}
public Entry MasterPasswordEntry { get; set; }

View File

@ -31,6 +31,7 @@ namespace Bit.App.Pages
PageTitle = AppResources.Bitwarden;
TogglePasswordCommand = new Command(TogglePassword);
LogInCommand = new Command(async () => await LogInAsync());
}
public bool ShowPassword
@ -55,6 +56,7 @@ namespace Bit.App.Pages
set => SetProperty(ref _masterPassword, value);
}
public Command LogInCommand { get; }
public Command TogglePasswordCommand { get; }
public string ShowPasswordIcon => ShowPassword ? "" : "";
public bool RememberEmail { get; set; }