mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): oauth quota display (#19417)
* fix(web): oauth quota display * fix(web): oauth quota display
This commit is contained in:
parent
6a309129b7
commit
ce14324c97
1 changed files with 3 additions and 3 deletions
|
|
@ -113,12 +113,12 @@
|
||||||
>
|
>
|
||||||
<td class="w-1/4 text-ellipsis px-2 text-sm">
|
<td class="w-1/4 text-ellipsis px-2 text-sm">
|
||||||
{getByteUnitString(user.usage, $locale, 0)}
|
{getByteUnitString(user.usage, $locale, 0)}
|
||||||
{#if user.quotaSizeInBytes}
|
{#if user.quotaSizeInBytes !== null}
|
||||||
/ {getByteUnitString(user.quotaSizeInBytes, $locale, 0)}
|
/ {getByteUnitString(user.quotaSizeInBytes, $locale, 0)}
|
||||||
{/if}
|
{/if}
|
||||||
<span class="text-immich-primary dark:text-immich-dark-primary">
|
<span class="text-immich-primary dark:text-immich-dark-primary">
|
||||||
{#if user.quotaSizeInBytes}
|
{#if user.quotaSizeInBytes !== null && user.quotaSizeInBytes >= 0}
|
||||||
({(user.usage / user.quotaSizeInBytes).toLocaleString($locale, {
|
({(user.quotaSizeInBytes === 0 ? 1 : user.usage / user.quotaSizeInBytes).toLocaleString($locale, {
|
||||||
style: 'percent',
|
style: 'percent',
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 0,
|
||||||
})})
|
})})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue