CipherListOptions on search page

This commit is contained in:
Kyle Spearrin 2019-05-30 18:33:18 -04:00
parent 0aa1359ad4
commit cf2308a12d
2 changed files with 3 additions and 9 deletions

View file

@ -189,7 +189,7 @@ namespace Bit.App.Pages
{ {
var options = _lockOptions.Select(o => o.Key == _lockOptionValue ? $"✓ {o.Key}" : o.Key).ToArray(); var options = _lockOptions.Select(o => o.Key == _lockOptionValue ? $"✓ {o.Key}" : o.Key).ToArray();
var selection = await Page.DisplayActionSheet(AppResources.LockOptions, AppResources.Cancel, null, options); var selection = await Page.DisplayActionSheet(AppResources.LockOptions, AppResources.Cancel, null, options);
if(selection == AppResources.Cancel) if(selection == null || selection == AppResources.Cancel)
{ {
return; return;
} }

View file

@ -173,16 +173,10 @@ namespace Bit.App.Pages
private async void CipherOptionsAsync(CipherView cipher) private async void CipherOptionsAsync(CipherView cipher)
{ {
if(!(Page as BaseContentPage).DoOnce()) if((Page as BaseContentPage).DoOnce())
{ {
return; await Utilities.AppHelpers.CipherListOptions(Page, cipher);
} }
var option = await Page.DisplayActionSheet(cipher.Name, AppResources.Cancel, null, "1", "2");
if(option == AppResources.Cancel)
{
return;
}
// TODO: process options
} }
} }
} }