mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-25 12:05:59 +01:00
only select when there is an action passed in
This commit is contained in:
parent
6b996e3a98
commit
e7c78f6efa
@ -104,14 +104,16 @@ namespace Bit.App.Pages
|
|||||||
VerticalOptions = LayoutOptions.FillAndExpand
|
VerticalOptions = LayoutOptions.FillAndExpand
|
||||||
};
|
};
|
||||||
|
|
||||||
var selectToolBarItem = new ToolbarItem("Select", null, async () =>
|
if(_passwordValueAction != null)
|
||||||
{
|
{
|
||||||
_passwordValueAction(Password.Text);
|
var selectToolBarItem = new ToolbarItem("Select", null, async () =>
|
||||||
await Navigation.PopModalAsync();
|
{
|
||||||
}, ToolbarItemOrder.Default, 0);
|
_passwordValueAction(Password.Text);
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}, ToolbarItemOrder.Default, 0);
|
||||||
|
|
||||||
|
ToolbarItems.Add(selectToolBarItem);
|
||||||
ToolbarItems.Add(selectToolBarItem);
|
}
|
||||||
|
|
||||||
Title = "Generate Password";
|
Title = "Generate Password";
|
||||||
Content = scrollView;
|
Content = scrollView;
|
||||||
|
Loading…
Reference in New Issue
Block a user