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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user