From 29a4389aac162a501af59eac68f5e075b5f35f8a Mon Sep 17 00:00:00 2001 From: Sam Holton Date: Sun, 3 Mar 2024 15:47:00 -0500 Subject: [PATCH] feat(web): show user quota on server stats page (#7591) --- .../admin-page/server-stats/server-stats-panel.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte b/web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte index ac3512c6c2..e8fabbe9c1 100644 --- a/web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte +++ b/web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte @@ -102,6 +102,9 @@ {user.videos.toLocaleString($locale)} {asByteUnitString(user.usage, $locale, 0)} + {#if user.quotaSizeInBytes} + / {asByteUnitString(user.quotaSizeInBytes, $locale, 0)} + {/if} {#if user.quotaSizeInBytes} ({((user.usage / user.quotaSizeInBytes) * 100).toFixed(0)}%)