Skip to content

High performance self-hosted photo and video management solution.

fix(web): map timeline asset count (#26564)

Michel Heusschen28ca5f59fe6b
diff --git a/web/src/lib/components/shared-components/map/MapTimelinePanel.svelte b/web/src/lib/components/shared-components/map/MapTimelinePanel.svelte
index b4f0dfb74d..7427cb474f 100644
--- a/web/src/lib/components/shared-components/map/MapTimelinePanel.svelte
+++ b/web/src/lib/components/shared-components/map/MapTimelinePanel.svelte
@@ -21,7 +21,7 @@
import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
import { getAssetBulkActions } from '$lib/services/asset.service';
import { AssetInteraction } from '$lib/stores/asset-interaction.svelte';
- import { locale, mapSettings } from '$lib/stores/preferences.store';
+ import { mapSettings } from '$lib/stores/preferences.store';
import { preferences, user } from '$lib/stores/user.store';
import {
updateStackedAssetInTimeline,
@@ -90,8 +90,6 @@
assetFilter: selectedClusterIds,
});
- const displayedAssetCount = $derived(timelineManager?.assetCount ?? assetCount);
-
$effect.pre(() => {
void timelineOptions;
assetInteraction.clearMultiselect();
@@ -103,8 +101,7 @@
<div class="flex items-center gap-2">
<Icon icon={mdiImageMultiple} size="20" />
<p class="text-sm font-medium text-immich-fg dark:text-immich-dark-fg">
- {displayedAssetCount.toLocaleString($locale)}
- {$t('assets')}
+ {$t('assets_count', { values: { count: assetCount } })}
</p>
</div>
<CloseButton onclick={onClose} />