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 869c8c317..3da03fa05 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 f0d258956..c236f56a4 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 { 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 04a14d012..a360e111f 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 { FileSelectionOverlayBar( ClusterPage.overlayType, _selectedFiles, + clusterID: widget.cluserID, ), ], ),