1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-27 17:08:00 +01:00

only show cancel when coming from another page

This commit is contained in:
Kyle Spearrin 2017-12-20 10:22:39 -05:00
parent ac5c9e7242
commit 4b21660fd6

View File

@ -154,8 +154,11 @@ namespace Bit.App.Pages
{ {
table.RowHeight = -1; table.RowHeight = -1;
table.EstimatedRowHeight = 44; table.EstimatedRowHeight = 44;
ToolbarItems.Add(new DismissModalToolBarItem(this,
_passwordValueAction == null ? AppResources.Close : AppResources.Cancel)); if(_passwordValueAction == null)
{
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
}
} }
var stackLayout = new StackLayout var stackLayout = new StackLayout