From 3d61548d7da9a2985964ee2c081eec9aacc387b2 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:45:52 +0100 Subject: [PATCH] fix(web): resolve issues with user usage statistics and refactor (#14374) --- i18n/en.json | 1 + .../user-usage-statistic.svelte | 106 ++++++++---------- 2 files changed, 49 insertions(+), 58 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 9224597feb..277db70a23 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1306,6 +1306,7 @@ "view_all_users": "View all users", "view_in_timeline": "View in timeline", "view_links": "View links", + "view_name": "View", "view_next_asset": "View next asset", "view_previous_asset": "View previous asset", "view_stack": "View Stack", diff --git a/web/src/lib/components/user-settings-page/user-usage-statistic.svelte b/web/src/lib/components/user-settings-page/user-usage-statistic.svelte index 8833d266ea..f7de1d8f64 100644 --- a/web/src/lib/components/user-settings-page/user-usage-statistic.svelte +++ b/web/src/lib/components/user-settings-page/user-usage-statistic.svelte @@ -1,4 +1,5 @@ -{#snippet row(viewName: string, imageCount: number, videoCount: number, totalCount: number)} -
{$t('photos_and_videos')}
-{$t('view').toLocaleString()} | -{$t('photos').toLocaleString()} | -{$t('videos').toLocaleString()} | -{$t('total').toLocaleString()} | -
---|---|---|---|
{$t('albums')}
{$t('owned')} | -{$t('shared')} | -
---|---|
{albumStats.owned.toLocaleString()} | -{albumStats.shared.toLocaleString()} | - - -