Skip to content

armgit / ente

Public Imported from GitHub
0

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

Merge branch 'main' into add_location_data

ashilkna67e4795007a
diff --cc lib/ui/viewer/actions/file_selection_actions_widget.dart
index 18039ab0d8,50d6f349bb..c46280a3ee
--- a/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@@ -313,42 -308,15 +312,45 @@@ class _FileSelectionActionsWidgetStat
);
}
+ if (widget.type.showEditLocation()) {
+ items.add(
+ SelectionActionButton(
+ shouldShow: widget.selectedFiles.files.any(
+ (element) => (element.fileType != FileType.video &&
+ element.ownerID == currentUserID),
+ ),
+ labelText: "Edit location",
+ icon: Icons.edit_location_alt_outlined,
+ onTap: () async {
+ await showBarModalBottomSheet(
+ shape: const RoundedRectangleBorder(
+ borderRadius: BorderRadius.vertical(
+ top: Radius.circular(5),
+ ),
+ ),
+ backgroundColor: getEnteColorScheme(context).backgroundElevated,
+ barrierColor: backdropFaintDark,
+ context: context,
+ builder: (context) {
+ return UpdateLocationDataWidget(
+ widget.selectedFiles.files.toList(),
+ );
+ },
+ );
+ },
+ ),
+ );
+ }
+
items.add(
SelectionActionButton(
- icon: Icons.grid_view_outlined,
- labelText: S.of(context).createCollage,
- onTap: _onCreateCollageClicked,
- shouldShow: showCollageOption,
+ labelText: S.of(context).share,
+ icon: Icons.adaptive.share_outlined,
+ onTap: () => shareSelected(
+ context,
+ shareButtonKey,
+ widget.selectedFiles.files.toList(),
+ ),
),
);