mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Add text notifying user that no asset is found (#2400)
This commit is contained in:
@@ -26,9 +26,13 @@ class FavoritesPage extends HookConsumerWidget {
|
||||
|
||||
return Scaffold(
|
||||
appBar: buildAppBar(),
|
||||
body: ImmichAssetGrid(
|
||||
assets: ref.watch(favoriteAssetProvider),
|
||||
),
|
||||
body: ref.watch(favoriteAssetProvider).isEmpty
|
||||
? const Center(
|
||||
child: Text('No favorite assets found.'),
|
||||
)
|
||||
: ImmichAssetGrid(
|
||||
assets: ref.watch(favoriteAssetProvider),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user