From d1b210cf16688241a6feec6eae6a08fa5f221773 Mon Sep 17 00:00:00 2001 From: Mathieu <70369997+MathieuRA@users.noreply.github.com> Date: Tue, 18 Oct 2022 15:03:28 +0200 Subject: [PATCH] fix(lite/dashboard): add missing 'id' field for storage usage (#6467) --- .../pool/dashboard/PoolDashboardStorageUsage.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/@xen-orchestra/lite/src/components/pool/dashboard/PoolDashboardStorageUsage.vue b/@xen-orchestra/lite/src/components/pool/dashboard/PoolDashboardStorageUsage.vue index c292fd8cf..f3c761b83 100644 --- a/@xen-orchestra/lite/src/components/pool/dashboard/PoolDashboardStorageUsage.vue +++ b/@xen-orchestra/lite/src/components/pool/dashboard/PoolDashboardStorageUsage.vue @@ -51,16 +51,16 @@ const percentFree = computed(() => const showFooter = computed(() => !isNaN(percentUsed.value)); const data = computed<{ - result: { label: string; value: number }[]; + result: { id: string; label: string; value: number }[]; maxSize: number; usedSize: number; }>(() => { - const result: { label: string; value: number }[] = []; + const result: { id: string; label: string; value: number }[] = []; let maxSize = 0; let usedSize = 0; srStore.allRecords.forEach( - ({ name_label, physical_size, physical_utilisation }) => { + ({ name_label, physical_size, physical_utilisation, uuid }) => { if (physical_size < 0 || physical_utilisation < 0) { return; } @@ -75,6 +75,7 @@ const data = computed<{ } result.push({ + id: uuid, label: name_label, value: percent, });