mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 22:23:35 +00:00
reposition buttons in Log In and Unlock pages (#1073)
* reposition buttons in Log In and Unlock pages
- Log In page: move Log In button to primary location below password
entry, move Get Your Master Password Hint to the More Options menu
- Unlock page (Verify Master Password): swap position of Unlock
and Log Out buttons
* finish changes to improved login ui
- move Log Out button in lock screen to secondary menu
- show Get Hint button on login screen in the iOS autofill login flow
Co-authored-by: Matt Portune <59324545+mportune-bw@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Bit.App.Models;
|
||||
using Bit.App.Resources;
|
||||
using Bit.Core.Abstractions;
|
||||
using Bit.Core.Utilities;
|
||||
using System;
|
||||
@@ -40,6 +41,15 @@ namespace Bit.App.Pages
|
||||
|
||||
_email.ReturnType = ReturnType.Next;
|
||||
_email.ReturnCommand = new Command(() => _masterPassword.Focus());
|
||||
|
||||
if (Device.RuntimePlatform == Device.iOS)
|
||||
{
|
||||
ToolbarItems.Add(_moreItem);
|
||||
}
|
||||
else
|
||||
{
|
||||
ToolbarItems.Add(_getPasswordHint);
|
||||
}
|
||||
}
|
||||
|
||||
public Entry MasterPasswordEntry { get; set; }
|
||||
@@ -82,6 +92,22 @@ namespace Bit.App.Pages
|
||||
}
|
||||
}
|
||||
|
||||
private async void More_Clicked(object sender, System.EventArgs e)
|
||||
{
|
||||
if (!DoOnce())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var selection = await DisplayActionSheet(AppResources.Options,
|
||||
AppResources.Cancel, null, AppResources.GetPasswordHint);
|
||||
|
||||
if (selection == AppResources.GetPasswordHint)
|
||||
{
|
||||
await Navigation.PushModalAsync(new NavigationPage(new HintPage()));
|
||||
}
|
||||
}
|
||||
|
||||
private async Task StartTwoFactorAsync()
|
||||
{
|
||||
var page = new TwoFactorPage(false, _appOptions);
|
||||
|
||||
Reference in New Issue
Block a user