mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
fix(mobile): remain on albums tab after album deletion (#16698)
fix(mobile): remain on albums after album deletion
This commit is contained in:
parent
19c40e3be9
commit
c12986d38c
@ -58,12 +58,7 @@ class AlbumViewerAppbar extends HookConsumerWidget
|
|||||||
final bool success =
|
final bool success =
|
||||||
await ref.watch(albumProvider.notifier).deleteAlbum(album);
|
await ref.watch(albumProvider.notifier).deleteAlbum(album);
|
||||||
|
|
||||||
if (album.shared) {
|
|
||||||
context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
|
context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
|
||||||
} else {
|
|
||||||
context
|
|
||||||
.navigateTo(const TabControllerRoute(children: [LibraryRoute()]));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
ImmichToast.show(
|
ImmichToast.show(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user