mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 17:23:21 +03:00
* fix(web): fix sidebar tooltip pluralization * Rename property * Remove data-testid attribute * Fix variable type
18 lines
592 B
Svelte
18 lines
592 B
Svelte
<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}
|