Skip to content

Commit

Permalink
fix(veeam-backup): fix space unit displayed
Browse files Browse the repository at this point in the history
ref: MANAGER-16236

Signed-off-by: Paul Dickerson <[email protected]>
  • Loading branch information
Paul Dickerson committed Dec 16, 2024
1 parent 73f4871 commit d34202d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@
"administrator_contact": "{{code}} Administrateur",
"billing_contact": "{{code}} Facturation",
"technical_contact": "{{code}} Technique",
"terminated_service": "Le service a été résilié."
"terminated_service": "Le service a été résilié.",
"gigabyte": "Go",
"terabyte": "To"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export const OfferProgress: React.FC<VeeamBackupOffer> = ({
}) => {
const { t } = useTranslation('dashboard');
const percent = (usedSpaceInGB / (quotaInTB * 10)).toFixed(2);
const label = `${usedSpaceInGB} Go / ${quotaInTB} To (${percent}%)`;
const usedSpaceLabel = `${usedSpaceInGB} ${t('gigabyte')}`;
const quotaSpaceLabel = `${quotaInTB} ${t('terabyte')}`;
const label = `${usedSpaceLabel} / ${quotaSpaceLabel} (${percent}%)`;

return (
<div className="flex flex-col">
Expand Down

0 comments on commit d34202d

Please sign in to comment.