Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Move up remove option for cluster

laurenspriemedae970e8c13
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 385ad09950..6e5fdbd0b9 100644
--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -184,6 +184,16 @@ class _FileSelectionActionsWidgetState
}
}
+ if (widget.type == GalleryType.cluster && widget.clusterID != null) {
+ items.add(
+ SelectionActionButton(
+ labelText: S.of(context).remove,
+ icon: CupertinoIcons.minus,
+ onTap: anyUploadedFiles ? _onRemoveFromClusterClicked : null,
+ ),
+ );
+ }
+
final showUploadIcon = widget.type == GalleryType.localFolder &&
split.ownedByCurrentUser.isEmpty;
if (widget.type.showAddToAlbum()) {
@@ -436,17 +446,6 @@ class _FileSelectionActionsWidgetState
),
);
- // if (widget.type == GalleryType.cluster && widget.clusterID != null) {
- if (widget.type == GalleryType.cluster && widget.clusterID != null) {
- items.add(
- SelectionActionButton(
- labelText: 'Remove',
- icon: CupertinoIcons.minus,
- onTap: anyUploadedFiles ? _onRemoveFromClusterClicked : null,
- ),
- );
- }
-
if (items.isNotEmpty) {
final scrollController = ScrollController();
// h4ck: https://github.com/flutter/flutter/issues/57920#issuecomment-893970066