1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

changes based on add/edit mode

This commit is contained in:
Kyle Spearrin
2019-05-10 14:09:13 -04:00
parent 74c0e52458
commit 253217cf20
3 changed files with 25 additions and 13 deletions

View File

@@ -23,6 +23,11 @@ namespace Bit.App.Pages
_vm.Type = type;
_vm.Init();
SetActivityIndicator();
if(!_vm.EditMode)
{
ToolbarItems.Remove(_attachmentsItem);
ToolbarItems.Remove(_deleteItem);
}
_typePicker.ItemDisplayBinding = new Binding("Key");
_cardBrandPicker.ItemDisplayBinding = new Binding("Key");
@@ -36,7 +41,7 @@ namespace Bit.App.Pages
{
base.OnAppearing();
await LoadOnAppearedAsync(_scrollView, true, () => _vm.LoadAsync());
if(Device.RuntimePlatform == Device.Android)
if(_vm.EditMode && Device.RuntimePlatform == Device.Android)
{
if(_vm.Cipher.OrganizationId == null)
{