Skip to content

Commit

Permalink
add max value prop
Browse files Browse the repository at this point in the history
  • Loading branch information
P4l0m4 committed Jun 25, 2024
1 parent ffe469b commit 32a7744
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
prop('titleLink').type('string').required().preset('/hello').widget(),
prop('titleLinkLabel').type('string').widget(),
prop('segments').type('array').required().preset(segments).widget(),
prop('donutMaxValue').type('number').preset(100).widget(),
prop('legends').type('array').required().preset(legends).widget(),
prop('totalLabel').type('string').widget(),
prop('totalValue').type('number').required().preset(80).widget(),
Expand Down
3 changes: 2 additions & 1 deletion @xen-orchestra/web-core/lib/components/PoolStatusItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</template>
</CardTitle>
<div class="chart-and-legends">
<DonutChart :segments :icon />
<DonutChart :segments :icon :max-value="donutMaxValue" />
<ul class="legends">
<UiLegend
v-for="(legend, index) in legends"
Expand Down Expand Up @@ -59,6 +59,7 @@ interface Props {
titleLink: string
titleLinkLabel?: string
segments: Segment[]
donutMaxValue: number
totalValue: number
totalLabel?: string
icon?: IconDefinition
Expand Down

0 comments on commit 32a7744

Please sign in to comment.