[mob] complete remove from cluster feedback
This commit is contained in:
parent
768fa3d1ce
commit
e7670bfee6
3 changed files with 5 additions and 1 deletions
|
@ -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',
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -159,6 +159,7 @@ class _ClusterPageState extends State<ClusterPage> {
|
|||
FileSelectionOverlayBar(
|
||||
ClusterPage.overlayType,
|
||||
_selectedFiles,
|
||||
clusterID: widget.cluserID,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue