From 7721133ea9a2f68ad3d8402cd366225114bbb5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Tue, 16 Apr 2024 11:58:36 -0300 Subject: [PATCH] Fix display of properties related to backup size (#8845) --- ui/src/components/view/DetailsTab.vue | 9 +++++++++ ui/src/components/view/InfoCard.vue | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ui/src/components/view/DetailsTab.vue b/ui/src/components/view/DetailsTab.vue index b04830b3c3c..00aa92389c9 100644 --- a/ui/src/components/view/DetailsTab.vue +++ b/ui/src/components/view/DetailsTab.vue @@ -46,6 +46,15 @@ {{ service.name }} : {{ service.provider[0].name }} +
+ {{ $bytesToHumanReadableSize(dataResource[item]) }} + + + + +
{{ volume.type }} - {{ volume.path }} ({{ parseFloat(volume.size / (1024.0 * 1024.0 * 1024.0)).toFixed(1) }} GB) diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 69c40233d08..66c878da0f8 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -290,10 +290,20 @@
-
{{ $t('label.disksize') }}
+
{{ $t('label.size') }}
+
{{ $t('label.disksize') }}
{{ (resource.volumes.reduce((total, item) => total += item.size, 0) / (1024 * 1024 * 1024.0)).toFixed(2) }} GB Storage + + {{ $bytesToHumanReadableSize(resource.size) }} + + + + + {{ resource.sizegb || (resource.size/1024.0) }}