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

notes separator for ios

This commit is contained in:
Kyle Spearrin 2019-06-24 11:22:34 -04:00
parent 2d41dd6ae0
commit 38f91bce1c
4 changed files with 10 additions and 0 deletions

View File

@ -501,6 +501,7 @@
Text="{Binding Cipher.Notes}"
StyleClass="box-value" />
</StackLayout>
<BoxView StyleClass="box-row-separator" IsVisible="{Binding ShowNotesSeparator}" />
</StackLayout>
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row-header">

View File

@ -58,6 +58,7 @@ namespace Bit.App.Pages
{
ToolbarItems.Add(_moreItem);
}
_vm.ShowNotesSeparator = true;
}
_typePicker.ItemDisplayBinding = new Binding("Key");

View File

@ -24,6 +24,7 @@ namespace Bit.App.Pages
private readonly IAuditService _auditService;
private readonly IMessagingService _messagingService;
private CipherView _cipher;
private bool _showNotesSeparator;
private bool _showPassword;
private bool _showCardCode;
private int _typeSelectedIndex;
@ -224,6 +225,11 @@ namespace Bit.App.Pages
get => _cipher;
set => SetProperty(ref _cipher, value, additionalPropertyNames: _additionalCipherProperties);
}
public bool ShowNotesSeparator
{
get => _showNotesSeparator;
set => SetProperty(ref _showNotesSeparator, value);
}
public bool ShowPassword
{
get => _showPassword;

View File

@ -18,6 +18,8 @@
ApplyToDerivedTypes="True">
<Setter Property="PlaceholderColor"
Value="{StaticResource InputPlaceholderColor}" />
<Setter Property="Margin"
Value="0, 0, 0, 12" />
</Style>
<Style TargetType="Switch"
ApplyToDerivedTypes="True">