mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00: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
1 changed files with 1 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue