Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] complete remove from cluster feedback

laurensprieme7670bfee6e1
diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
index 869c8c317f..3da03fa055 100644
--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -402,7 +402,7 @@ class _FileSelectionActionsWidgetState
);
// if (widget.type == GalleryType.cluster && widget.clusterID != null) {
- if (widget.type == GalleryType.cluster) {
+ if (widget.type == GalleryType.cluster && widget.clusterID != null) {
items.add(
SelectionActionButton(
labelText: 'Remove',
diff --git a/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart
index f0d258956d..c236f56a4c 100644
--- a/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart
@@ -12,6 +12,7 @@ class FileSelectionOverlayBar extends StatefulWidget {
final Collection? collection;
final Color? backgroundColor;
final Person? person;
+ final int? clusterID;
const FileSelectionOverlayBar(
this.galleryType,
@@ -19,6 +20,7 @@ class FileSelectionOverlayBar extends StatefulWidget {
this.collection,
this.backgroundColor,
this.person,
+ this.clusterID,
Key? key,
}) : super(key: key);
@@ -69,6 +71,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
galleryType: widget.galleryType,
collection: widget.collection,
person: widget.person,
+ clusterID: widget.clusterID,
onCancel: () {
if (widget.selectedFiles.files.isNotEmpty) {
widget.selectedFiles.clearAll();
diff --git a/mobile/lib/ui/viewer/people/cluster_page.dart b/mobile/lib/ui/viewer/people/cluster_page.dart
index 04a14d0120..a360e111f5 100644
--- a/mobile/lib/ui/viewer/people/cluster_page.dart
+++ b/mobile/lib/ui/viewer/people/cluster_page.dart
@@ -159,6 +159,7 @@ class _ClusterPageState extends State<ClusterPage> {
FileSelectionOverlayBar(
ClusterPage.overlayType,
_selectedFiles,
+ clusterID: widget.cluserID,
),
],
),