High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
feat(web): add an empty placeholder to the explore page (#9990)
Snowknight2697ffddee7c9c
diff --git a/web/src/lib/i18n/en-US.json b/web/src/lib/i18n/en-US.jsonindex 40496e6aeb..1ce471beca 100644--- a/web/src/lib/i18n/en-US.json+++ b/web/src/lib/i18n/en-US.json@@ -543,6 +543,7 @@"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_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_libraries_message": "Create an external library to view your photos and videos","no_name": "No Name",diff --git a/web/src/routes/(user)/explore/+page.svelte b/web/src/routes/(user)/explore/+page.svelteindex 2a4adf06cf..015c89733c 100644--- a/web/src/routes/(user)/explore/+page.svelte+++ b/web/src/routes/(user)/explore/+page.svelte@@ -8,6 +8,7 @@import type { PageData } from './$types';import { getMetadataSearchQuery } from '$lib/utils/metadata-search';import { t } from 'svelte-i18n';+ import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte';export let data: PageData;@@ -102,5 +103,7 @@</div>{/if}- <hr class="mb-4 dark:border-immich-dark-gray" />+ {#if !hasPeople && places.length === 0}+ <EmptyPlaceholder text={$t('no_explore_results_message')} />+ {/if}</UserPageLayout>