diff --git a/@xen-orchestra/web-core/lib/components/DonutWithLegends.vue b/@xen-orchestra/web-core/lib/components/DonutWithLegends.vue new file mode 100644 index 00000000000..26ed3ca648c --- /dev/null +++ b/@xen-orchestra/web-core/lib/components/DonutWithLegends.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/@xen-orchestra/web-core/lib/types/donut-chart.type.ts b/@xen-orchestra/web-core/lib/types/donut-chart.type.ts index fa3d2f946c7..19d1adcec14 100644 --- a/@xen-orchestra/web-core/lib/types/donut-chart.type.ts +++ b/@xen-orchestra/web-core/lib/types/donut-chart.type.ts @@ -1,5 +1,5 @@ -export type DonutColor = 'success' | 'warning' | 'error' | 'unknown' +export type DonutSegmentColor = 'success' | 'warning' | 'error' | 'unknown' export type DonutSegment = { value: number - color: DonutColor + color: DonutSegmentColor } diff --git a/@xen-orchestra/web-core/lib/types/ui-legend.type.ts b/@xen-orchestra/web-core/lib/types/legend.type.ts similarity index 100% rename from @xen-orchestra/web-core/lib/types/ui-legend.type.ts rename to @xen-orchestra/web-core/lib/types/legend.type.ts diff --git a/@xen-orchestra/web/src/components/DonutWithLegends.vue b/@xen-orchestra/web/src/components/DonutWithLegends.vue deleted file mode 100644 index ca209113b49..00000000000 --- a/@xen-orchestra/web/src/components/DonutWithLegends.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - diff --git a/@xen-orchestra/web/src/components/pool/dashboard/VmStatus.vue b/@xen-orchestra/web/src/components/pool/dashboard/VmStatus.vue index b4b79ee8d9d..a0310375e57 100644 --- a/@xen-orchestra/web/src/components/pool/dashboard/VmStatus.vue +++ b/@xen-orchestra/web/src/components/pool/dashboard/VmStatus.vue @@ -7,12 +7,12 @@