mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 16:29:27 +03:00
fix(mobile): don't pop when opening albums
The asset viewer closes when opening an album from the asset details. This doesn't seem desirable, and it likely a side-effect from the previous pop behaviour which would close just the bottom sheet, and not the asset viewer.
This commit is contained in:
@@ -60,8 +60,7 @@ class AppearsInDetails extends ConsumerWidget {
|
|||||||
album: album,
|
album: album,
|
||||||
isOwner: isOwner,
|
isOwner: isOwner,
|
||||||
onAlbumSelected: (album) async {
|
onAlbumSelected: (album) async {
|
||||||
ref.invalidate(assetViewerProvider);
|
unawaited(context.router.push(RemoteAlbumRoute(album: album)));
|
||||||
unawaited(context.router.popAndPush(RemoteAlbumRoute(album: album)));
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
|
|||||||
Reference in New Issue
Block a user