High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): oauth quota display (#19417)
Daimoleance14324c97c6
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.svelteindex 2f8d391954..b9ceec7445 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@@ -113,12 +113,12 @@><td class="w-1/4 text-ellipsis px-2 text-sm">{getByteUnitString(user.usage, $locale, 0)}- {#if user.quotaSizeInBytes}+ {#if user.quotaSizeInBytes !== null}/ {getByteUnitString(user.quotaSizeInBytes, $locale, 0)}{/if}<span class="text-immich-primary dark:text-immich-dark-primary">- {#if user.quotaSizeInBytes}- ({(user.usage / user.quotaSizeInBytes).toLocaleString($locale, {+ {#if user.quotaSizeInBytes !== null && user.quotaSizeInBytes >= 0}+ ({(user.quotaSizeInBytes === 0 ? 1 : user.usage / user.quotaSizeInBytes).toLocaleString($locale, {style: 'percent',maximumFractionDigits: 0,})})