mirror of
https://github.com/bitwarden/android.git
synced 2025-01-12 11:17:30 +03:00
fix more options for sharing on view/add/edit
This commit is contained in:
parent
ea30373a09
commit
3ca5da55cb
2 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ namespace Bit.App.Pages
|
||||||
var options = new List<string> { AppResources.Attachments };
|
var options = new List<string> { AppResources.Attachments };
|
||||||
if(_vm.EditMode)
|
if(_vm.EditMode)
|
||||||
{
|
{
|
||||||
options.Add(_vm.Cipher.OrganizationId != null ? AppResources.Share : AppResources.Collections);
|
options.Add(_vm.Cipher.OrganizationId == null ? AppResources.Share : AppResources.Collections);
|
||||||
}
|
}
|
||||||
var selection = await DisplayActionSheet(AppResources.Options, AppResources.Cancel,
|
var selection = await DisplayActionSheet(AppResources.Options, AppResources.Cancel,
|
||||||
_vm.EditMode ? AppResources.Delete : null, options.ToArray());
|
_vm.EditMode ? AppResources.Delete : null, options.ToArray());
|
||||||
|
|
|
@ -154,7 +154,7 @@ namespace Bit.App.Pages
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var options = new List<string> { AppResources.Attachments };
|
var options = new List<string> { AppResources.Attachments };
|
||||||
options.Add(_vm.Cipher.OrganizationId != null ? AppResources.Share : AppResources.Collections);
|
options.Add(_vm.Cipher.OrganizationId == null ? AppResources.Share : AppResources.Collections);
|
||||||
var selection = await DisplayActionSheet(AppResources.Options, AppResources.Cancel,
|
var selection = await DisplayActionSheet(AppResources.Options, AppResources.Cancel,
|
||||||
AppResources.Delete, options.ToArray());
|
AppResources.Delete, options.ToArray());
|
||||||
if(selection == AppResources.Delete)
|
if(selection == AppResources.Delete)
|
||||||
|
|
Loading…
Reference in a new issue