From aedeaefa02689da28f51b1c18976bf30624c1f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Mon, 4 Mar 2024 15:45:39 -0300 Subject: [PATCH 1/4] fix size display on details tab --- ui/src/components/view/DetailsTab.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/components/view/DetailsTab.vue b/ui/src/components/view/DetailsTab.vue index b04830b3c3c9..73e9a2b936f4 100644 --- a/ui/src/components/view/DetailsTab.vue +++ b/ui/src/components/view/DetailsTab.vue @@ -46,6 +46,9 @@ {{ 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) From 7aa30c8060e94f00911f015238c0de5644a46dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Mon, 4 Mar 2024 15:51:01 -0300 Subject: [PATCH 2/4] fix size display on info card --- ui/src/components/view/InfoCard.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 69c40233d08a..cd6a926f6120 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -290,10 +290,12 @@
-
{{ $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) }}
From 826dc242b1e32e52ad83b51518c8e49ef5f6d674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Mon, 4 Mar 2024 16:21:59 -0300 Subject: [PATCH 3/4] add tooltips to details tab --- ui/src/components/view/DetailsTab.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/components/view/DetailsTab.vue b/ui/src/components/view/DetailsTab.vue index 73e9a2b936f4..00aa92389c9b 100644 --- a/ui/src/components/view/DetailsTab.vue +++ b/ui/src/components/view/DetailsTab.vue @@ -48,6 +48,12 @@
{{ $bytesToHumanReadableSize(dataResource[item]) }} + + + +
From 3426c7654afb52a55773f0eb0a3a4858eea30ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Mon, 4 Mar 2024 16:24:06 -0300 Subject: [PATCH 4/4] add tooltip to info card --- ui/src/components/view/InfoCard.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index cd6a926f6120..66c878da0f81 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -295,7 +295,15 @@
{{ (resource.volumes.reduce((total, item) => total += item.size, 0) / (1024 * 1024 * 1024.0)).toFixed(2) }} GB Storage - {{ $bytesToHumanReadableSize(resource.size) }} + + {{ $bytesToHumanReadableSize(resource.size) }} + + + + + {{ resource.sizegb || (resource.size/1024.0) }}