mirror of
https://github.com/immich-app/immich.git
synced 2025-04-15 03:11:28 -05: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 =
|
||||
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…
Add table
Reference in a new issue