mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	Add text notifying user that no asset is found (#2400)
This commit is contained in:
		
							parent
							
								
									053104fc50
								
							
						
					
					
						commit
						5885ec8e65
					
				@ -111,7 +111,11 @@ class ArchivePage extends HookConsumerWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return Scaffold(
 | 
					    return Scaffold(
 | 
				
			||||||
      appBar: buildAppBar(),
 | 
					      appBar: buildAppBar(),
 | 
				
			||||||
      body: Stack(
 | 
					      body: archivedAssets.value.isEmpty
 | 
				
			||||||
 | 
					          ? const Center(
 | 
				
			||||||
 | 
					              child: Text('No archived assets found.'),
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
 | 
					          : Stack(
 | 
				
			||||||
              children: [
 | 
					              children: [
 | 
				
			||||||
                ImmichAssetGrid(
 | 
					                ImmichAssetGrid(
 | 
				
			||||||
                  assets: archivedAssets.value,
 | 
					                  assets: archivedAssets.value,
 | 
				
			||||||
 | 
				
			|||||||
@ -26,7 +26,11 @@ class FavoritesPage extends HookConsumerWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return Scaffold(
 | 
					    return Scaffold(
 | 
				
			||||||
      appBar: buildAppBar(),
 | 
					      appBar: buildAppBar(),
 | 
				
			||||||
      body: ImmichAssetGrid(
 | 
					      body: ref.watch(favoriteAssetProvider).isEmpty
 | 
				
			||||||
 | 
					          ? const Center(
 | 
				
			||||||
 | 
					              child: Text('No favorite assets found.'),
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
 | 
					          : ImmichAssetGrid(
 | 
				
			||||||
              assets: ref.watch(favoriteAssetProvider),
 | 
					              assets: ref.watch(favoriteAssetProvider),
 | 
				
			||||||
            ),
 | 
					            ),
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user