Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename album menu action from 'newest' and 'updated' to 'lastUpdated'

AmanRajSinghMouryafc6c625fdf9a
diff --git a/mobile/apps/photos/lib/ui/tabs/albums_tab.dart b/mobile/apps/photos/lib/ui/tabs/albums_tab.dart
index 9322a6f808..d94af717f9 100644
--- a/mobile/apps/photos/lib/ui/tabs/albums_tab.dart
+++ b/mobile/apps/photos/lib/ui/tabs/albums_tab.dart
@@ -36,7 +36,7 @@ import "package:photos/utils/local_settings.dart";
enum _AlbumsFilter { ente, onDevice, shared }
-enum _AlbumsMenuAction { toggleView, name, newest, updated }
+enum _AlbumsMenuAction { toggleView, name, lastUpdated }
class AlbumsTab extends StatefulWidget {
const AlbumsTab({
@@ -667,17 +667,10 @@ class _AlbumsTabState extends State<AlbumsTab>
? strings.sortAToZ
: strings.sortZToA,
isActive: currentSortKey == AlbumSortKey.albumName,
- activeTrailingWidget: activeTrailingWidget,
),
EntePopupMenuOption(
- value: _AlbumsMenuAction.newest,
- label: strings.newest,
- isActive: currentSortKey == AlbumSortKey.newestPhoto,
- activeTrailingWidget: activeTrailingWidget,
- ),
- EntePopupMenuOption(
- value: _AlbumsMenuAction.updated,
- label: strings.updated,
+ value: _AlbumsMenuAction.lastUpdated,
+ label: strings.lastUpdated,
isActive: currentSortKey == AlbumSortKey.lastUpdated,
activeTrailingWidget: activeTrailingWidget,
showDivider: false,
@@ -694,10 +687,7 @@ class _AlbumsTabState extends State<AlbumsTab>
case _AlbumsMenuAction.name:
await _setSortMode(AlbumSortKey.albumName);
break;
- case _AlbumsMenuAction.newest:
- await _setSortMode(AlbumSortKey.newestPhoto);
- break;
- case _AlbumsMenuAction.updated:
+ case _AlbumsMenuAction.lastUpdated:
await _setSortMode(AlbumSortKey.lastUpdated);
break;
}