Skip to content

Commit

Permalink
feat(veeam-backup): display storage value using same unit
Browse files Browse the repository at this point in the history
ref: MANAGER-16076

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

return (
<div className="flex flex-col">
Expand All @@ -36,7 +33,7 @@ export const OfferProgress: React.FC<VeeamBackupOffer> = ({
size={ODS_TEXT_SIZE._500}
color={ODS_THEME_COLOR_INTENT.text}
>
{label}
{t('space_summary', { usedSpaceInGB, quotaInTB, percent })}
</OsdsText>
<OsdsTooltip>
<OsdsIcon
Expand Down

0 comments on commit a9a9518

Please sign in to comment.