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 =
|
||||
await ref.watch(albumProvider.notifier).deleteAlbum(album);
|
||||
|
||||
if (album.shared) {
|
||||
context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
|
||||
} else {
|
||||
context
|
||||
.navigateTo(const TabControllerRoute(children: [LibraryRoute()]));
|
||||
}
|
||||
context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
|
||||
|
||||
if (!success) {
|
||||
ImmichToast.show(
|
||||
|
Loading…
x
Reference in New Issue
Block a user