mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	feat(web): add an empty placeholder to the explore page (#9990)
* feat(web): add an empty placeholder to the explore page * Change the message wording per suggestion * fix: test --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
		
							parent
							
								
									abf6fc25f7
								
							
						
					
					
						commit
						97ffddee7c
					
				| @ -543,6 +543,7 @@ | |||||||
|   "no_archived_assets_message": "Archive photos and videos to hide them from your Photos view", |   "no_archived_assets_message": "Archive photos and videos to hide them from your Photos view", | ||||||
|   "no_assets_message": "CLICK TO UPLOAD YOUR FIRST PHOTO", |   "no_assets_message": "CLICK TO UPLOAD YOUR FIRST PHOTO", | ||||||
|   "no_exif_info_available": "No exif info available", |   "no_exif_info_available": "No exif info available", | ||||||
|  |   "no_explore_results_message": "Upload more photos to explore your collection.", | ||||||
|   "no_favorites_message": "Add favorites to quickly find your best pictures and videos", |   "no_favorites_message": "Add favorites to quickly find your best pictures and videos", | ||||||
|   "no_libraries_message": "Create an external library to view your photos and videos", |   "no_libraries_message": "Create an external library to view your photos and videos", | ||||||
|   "no_name": "No Name", |   "no_name": "No Name", | ||||||
|  | |||||||
| @ -8,6 +8,7 @@ | |||||||
|   import type { PageData } from './$types'; |   import type { PageData } from './$types'; | ||||||
|   import { getMetadataSearchQuery } from '$lib/utils/metadata-search'; |   import { getMetadataSearchQuery } from '$lib/utils/metadata-search'; | ||||||
|   import { t } from 'svelte-i18n'; |   import { t } from 'svelte-i18n'; | ||||||
|  |   import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte'; | ||||||
| 
 | 
 | ||||||
|   export let data: PageData; |   export let data: PageData; | ||||||
| 
 | 
 | ||||||
| @ -102,5 +103,7 @@ | |||||||
|     </div> |     </div> | ||||||
|   {/if} |   {/if} | ||||||
| 
 | 
 | ||||||
|   <hr class="mb-4 dark:border-immich-dark-gray" /> |   {#if !hasPeople && places.length === 0} | ||||||
|  |     <EmptyPlaceholder text={$t('no_explore_results_message')} /> | ||||||
|  |   {/if} | ||||||
| </UserPageLayout> | </UserPageLayout> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user