Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] UI for triggering hide method

laurenspriem1ab42640d998
diff --git a/mobile/lib/ui/viewer/people/cluster_app_bar.dart b/mobile/lib/ui/viewer/people/cluster_app_bar.dart
index 6e52e7a47b..fe94c8f85d 100644
--- a/mobile/lib/ui/viewer/people/cluster_app_bar.dart
+++ b/mobile/lib/ui/viewer/people/cluster_app_bar.dart
@@ -108,6 +108,11 @@ class _AppBarWidgetState extends State<ClusterAppBar> {
items.addAll(
[
+ EntePopupMenuItem(
+ "Hide person",
+ value: ClusterPopupAction.hide,
+ icon: Icons.hide_image_outlined,
+ ),
EntePopupMenuItem(
"Break up cluster",
value: ClusterPopupAction.breakupCluster,
@@ -126,12 +131,13 @@ class _AppBarWidgetState extends State<ClusterAppBar> {
if (value == ClusterPopupAction.breakupCluster) {
// ignore: unawaited_futures
await _breakUpCluster(context);
+ } else if (value == ClusterPopupAction.hide) {
+ await ClusterFeedbackService.instance
+ .hideCluster(widget.clusterID);
+ Navigator.of(context).pop(); // Close the cluster page
}
// else if (value == ClusterPopupAction.setCover) {
// await setCoverPhoto(context);
- // } else if (value == ClusterPopupAction.hide) {
- // // ignore: unawaited_futures
- // }
},
),
);