From 9467063f5ea51289f66363b8d790111bf6d379df Mon Sep 17 00:00:00 2001 From: nvazquez Date: Mon, 20 Jan 2025 10:14:59 -0300 Subject: [PATCH 1/4] [UI] Switch between allocated and used capacity on dashboard --- ui/src/views/dashboard/CapacityDashboard.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ui/src/views/dashboard/CapacityDashboard.vue b/ui/src/views/dashboard/CapacityDashboard.vue index dae53cf0015b..2366b519a2df 100644 --- a/ui/src/views/dashboard/CapacityDashboard.vue +++ b/ui/src/views/dashboard/CapacityDashboard.vue @@ -174,6 +174,11 @@
@@ -184,15 +189,19 @@

- {{ displayData(ctype, statsMap[ctype]?.capacityused) }} {{ $t('label.allocated') }} | {{ displayData(ctype, statsMap[ctype]?.capacitytotal) }} {{ $t('label.total') }} + {{ this.displayAllocatedCompute ? displayData(ctype, statsMap[ctype]?.capacityallocated) : displayData(ctype, statsMap[ctype]?.capacityused) }} {{ this.displayAllocatedCompute ? $t('label.allocated') : $t('label.used') }} | {{ displayData(ctype, statsMap[ctype]?.capacitytotal) }} {{ $t('label.total') }}
@@ -346,6 +355,7 @@ export default { zones: [], zoneSelected: {}, statsMap: {}, + displayAllocatedCompute: false, data: { pods: 0, clusters: 0, From bf13ec8c54c996a2ddbc2f6823a3825271097480 Mon Sep 17 00:00:00 2001 From: nvazquez Date: Mon, 20 Jan 2025 13:14:38 -0300 Subject: [PATCH 2/4] Fix text --- ui/src/views/dashboard/CapacityDashboard.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/views/dashboard/CapacityDashboard.vue b/ui/src/views/dashboard/CapacityDashboard.vue index 2366b519a2df..552eb6acfc9f 100644 --- a/ui/src/views/dashboard/CapacityDashboard.vue +++ b/ui/src/views/dashboard/CapacityDashboard.vue @@ -174,8 +174,9 @@