mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
fix(web): fix sidebar tooltip pluralization (#9952)
* fix(web): fix sidebar tooltip pluralization * Rename property * Remove data-testid attribute * Fix variable type
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { locale } from '$lib/stores/preferences.store.js';
|
||||
import { s } from '$lib/utils.js';
|
||||
import { getAssetStatistics } from '@immich/sdk';
|
||||
import LoadingSpinner from '$lib/components/shared-components/loading-spinner.svelte';
|
||||
|
||||
export let assetStats: NonNullable<Parameters<typeof getAssetStatistics>[0]>;
|
||||
</script>
|
||||
|
||||
{#await getAssetStatistics(assetStats)}
|
||||
<LoadingSpinner />
|
||||
{:then data}
|
||||
<div>
|
||||
<p>{data.videos.toLocaleString($locale)} Video{s(data.videos)}</p>
|
||||
<p>{data.images.toLocaleString($locale)} Photo{s(data.images)}</p>
|
||||
</div>
|
||||
{/await}
|
||||
Reference in New Issue
Block a user