mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 09:12:57 +02:00
fix(mobile): show all places don't show all places (#9193)
fix(mobile): show all places doesn't show all places
This commit is contained in:
parent
f057fe045e
commit
c0495ca23f
7 changed files with 46 additions and 15 deletions
mobile/lib/routing
|
@ -41,7 +41,7 @@ import 'package:immich_mobile/modules/trash/views/trash_page.dart';
|
|||
import 'package:immich_mobile/modules/search/views/all_motion_videos_page.dart';
|
||||
import 'package:immich_mobile/modules/search/views/all_people_page.dart';
|
||||
import 'package:immich_mobile/modules/search/views/all_videos_page.dart';
|
||||
import 'package:immich_mobile/modules/search/views/curated_location_page.dart';
|
||||
import 'package:immich_mobile/modules/search/views/all_places_page.dart';
|
||||
import 'package:immich_mobile/modules/search/views/person_result_page.dart';
|
||||
import 'package:immich_mobile/modules/search/views/recently_added_page.dart';
|
||||
import 'package:immich_mobile/modules/search/views/search_page.dart';
|
||||
|
@ -127,7 +127,7 @@ class AppRouter extends _$AppRouter {
|
|||
guards: [_authGuard, _duplicateGuard, _backupPermissionGuard],
|
||||
),
|
||||
AutoRoute(
|
||||
page: CuratedLocationRoute.page,
|
||||
page: AllPlacesRoute.page,
|
||||
guards: [_authGuard, _duplicateGuard],
|
||||
),
|
||||
AutoRoute(
|
||||
|
|
|
@ -138,10 +138,10 @@ abstract class _$AppRouter extends RootStackRouter {
|
|||
),
|
||||
);
|
||||
},
|
||||
CuratedLocationRoute.name: (routeData) {
|
||||
AllPlacesRoute.name: (routeData) {
|
||||
return AutoRoutePage<dynamic>(
|
||||
routeData: routeData,
|
||||
child: const CuratedLocationPage(),
|
||||
child: const AllPlacesPage(),
|
||||
);
|
||||
},
|
||||
FailedBackupStatusRoute.name: (routeData) {
|
||||
|
@ -753,11 +753,11 @@ class CreateAlbumRouteArgs {
|
|||
}
|
||||
|
||||
/// generated route for
|
||||
/// [CuratedLocationPage]
|
||||
class CuratedLocationRoute extends PageRouteInfo<void> {
|
||||
const CuratedLocationRoute({List<PageRouteInfo>? children})
|
||||
/// [AllPlacesPage]
|
||||
class AllPlacesRoute extends PageRouteInfo<void> {
|
||||
const AllPlacesRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
CuratedLocationRoute.name,
|
||||
AllPlacesRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ class TabNavigationObserver extends AutoRouterObserver {
|
|||
// Perform tasks on re-visit to SearchRoute
|
||||
if (route.name == 'SearchRoute') {
|
||||
// Refresh Location State
|
||||
ref.invalidate(getPlacesProvider);
|
||||
ref.invalidate(getPreviewPlacesProvider);
|
||||
ref.invalidate(getAllPeopleProvider);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue