Skip to content

Commit

Permalink
remove max value computed, add as prop
Browse files Browse the repository at this point in the history
  • Loading branch information
P4l0m4 committed Jul 11, 2024
1 parent 9cce589 commit d9c0ff6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions @xen-orchestra/web/src/components/DonutWithLegends.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,9 @@ const props = defineProps<{
tooltip?: string
}[]
icon?: IconDefinition
maxValue?: number
}>()
const maxValue = computed(() => {
return props.segments.reduce((acc, segment) => {
return acc + segment.value
}, 0)
})
const donutSegments = computed(() => {
if (props?.segments.length === 0) {
return []
Expand Down

0 comments on commit d9c0ff6

Please sign in to comment.