mirror of
https://github.com/bitwarden/android.git
synced 2025-03-14 02:08:48 +03:00
Add help link to password reprompt (#1439)
This commit is contained in:
parent
2003ac9d2c
commit
a2b46ee7cb
2 changed files with 15 additions and 1 deletions
|
@ -558,7 +558,14 @@
|
|||
<StackLayout StyleClass="box-row, box-row-switch">
|
||||
<Label
|
||||
Text="{u:I18n PasswordPrompt}"
|
||||
StyleClass="box-label-regular"
|
||||
StyleClass="box-label-regular" />
|
||||
<controls:FaButton
|
||||
StyleClass="box-row-button, box-row-button-platform"
|
||||
Text=""
|
||||
Command="{Binding PasswordPromptHelpCommand}"
|
||||
TextColor="{StaticResource MutedColor}"
|
||||
AutomationProperties.IsInAccessibleTree="True"
|
||||
AutomationProperties.Name="{u:I18n ToggleVisibility}"
|
||||
HorizontalOptions="StartAndExpand" />
|
||||
<Switch
|
||||
IsToggled="{Binding PasswordPrompt}"
|
||||
|
|
|
@ -88,6 +88,7 @@ namespace Bit.App.Pages
|
|||
CheckPasswordCommand = new Command(CheckPasswordAsync);
|
||||
UriOptionsCommand = new Command<LoginUriView>(UriOptions);
|
||||
FieldOptionsCommand = new Command<AddEditPageFieldViewModel>(FieldOptions);
|
||||
PasswordPromptHelpCommand = new Command(PasswordPromptHelp);
|
||||
Uris = new ExtendedObservableCollection<LoginUriView>();
|
||||
Fields = new ExtendedObservableCollection<AddEditPageFieldViewModel>();
|
||||
Collections = new ExtendedObservableCollection<CollectionViewModel>();
|
||||
|
@ -148,6 +149,7 @@ namespace Bit.App.Pages
|
|||
public Command CheckPasswordCommand { get; set; }
|
||||
public Command UriOptionsCommand { get; set; }
|
||||
public Command FieldOptionsCommand { get; set; }
|
||||
public Command PasswordPromptHelpCommand { get; set; }
|
||||
public string CipherId { get; set; }
|
||||
public string OrganizationId { get; set; }
|
||||
public string FolderId { get; set; }
|
||||
|
@ -741,6 +743,11 @@ namespace Bit.App.Pages
|
|||
}
|
||||
}
|
||||
|
||||
public void PasswordPromptHelp()
|
||||
{
|
||||
_platformUtilsService.LaunchUri("https://bitwarden.com/help/article/managing-items/#protect-individual-items");
|
||||
}
|
||||
|
||||
private void TypeChanged()
|
||||
{
|
||||
if (Cipher != null && TypeSelectedIndex > -1)
|
||||
|
|
Loading…
Add table
Reference in a new issue