diff --git a/src/App/Controls/CipherViewCell/CipherViewCell.xaml b/src/App/Controls/CipherViewCell/CipherViewCell.xaml
index 2cb827cd9..7edfa6836 100644
--- a/src/App/Controls/CipherViewCell/CipherViewCell.xaml
+++ b/src/App/Controls/CipherViewCell/CipherViewCell.xaml
@@ -74,13 +74,14 @@
Margin="5, 0, 0, 0"
Text=""
IsVisible="{Binding Cipher.HasAttachments, Mode=OneWay}" />
-
-
-
+
+
diff --git a/src/App/Controls/CipherViewCell/CipherViewCell.xaml.cs b/src/App/Controls/CipherViewCell/CipherViewCell.xaml.cs
index 420ce82a7..eb086b2b6 100644
--- a/src/App/Controls/CipherViewCell/CipherViewCell.xaml.cs
+++ b/src/App/Controls/CipherViewCell/CipherViewCell.xaml.cs
@@ -13,6 +13,9 @@ namespace Bit.App.Controls
public static readonly BindableProperty CipherProperty = BindableProperty.Create(
nameof(Cipher), typeof(CipherView), typeof(CipherViewCell), default(CipherView), BindingMode.OneWay);
+ public static readonly BindableProperty ButtonCommandProperty = BindableProperty.Create(
+ nameof(ButtonCommand), typeof(Command), typeof(CipherViewCell));
+
private CipherViewCellViewModel _viewModel;
public CipherViewCell()
@@ -27,6 +30,12 @@ namespace Bit.App.Controls
set => SetValue(CipherProperty, value);
}
+ public Command ButtonCommand
+ {
+ get => GetValue(ButtonCommandProperty) as Command;
+ set => SetValue(ButtonCommandProperty, value);
+ }
+
protected override void OnPropertyChanged(string propertyName = null)
{
base.OnPropertyChanged(propertyName);
@@ -118,5 +127,10 @@ namespace Bit.App.Controls
}
return new Tuple(icon, image);
}
+
+ private void ImageButton_Clicked(object sender, EventArgs e)
+ {
+ ButtonCommand?.Execute(Cipher);
+ }
}
}
diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml
index 8ecc3b075..fb0ea25f3 100644
--- a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml
+++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml
@@ -6,7 +6,8 @@
xmlns:u="clr-namespace:Bit.App.Utilities"
xmlns:controls="clr-namespace:Bit.App.Controls"
x:DataType="pages:GroupingsPageViewModel"
- Title="{Binding PageTitle}">
+ Title="{Binding PageTitle}"
+ x:Name="_page">
@@ -16,7 +17,9 @@
-
+
{ /* TODO */ });
+ CipherOptionsCommand = new Command(CipherOptionsAsync);
}
public bool ShowFavorites { get; set; } = true;
@@ -99,6 +100,7 @@ namespace Bit.App.Pages
public ExtendedObservableCollection GroupedItems { get; set; }
public Command RefreshCommand { get; set; }
public Command AddCipherCommand { get; set; }
+ public Command CipherOptionsCommand { get; set; }
public async Task LoadAsync()
{
@@ -273,5 +275,15 @@ namespace Bit.App.Pages
}
}
}
+
+ private async void CipherOptionsAsync(CipherView cipher)
+ {
+ var option = await Page.DisplayActionSheet(cipher.Name, AppResources.Cancel, null, "1", "2");
+ if(option == AppResources.Cancel)
+ {
+ return;
+ }
+ // TODO: process options
+ }
}
}
diff --git a/src/App/Styles/Android.xaml b/src/App/Styles/Android.xaml
index ef55b6be4..8369be005 100644
--- a/src/App/Styles/Android.xaml
+++ b/src/App/Styles/Android.xaml
@@ -24,6 +24,9 @@
+
diff --git a/src/App/Styles/Base.xaml b/src/App/Styles/Base.xaml
index 4ef144a37..5b6b1f6ba 100644
--- a/src/App/Styles/Base.xaml
+++ b/src/App/Styles/Base.xaml
@@ -97,6 +97,18 @@
+