From 60e9e62dd16cb7381b7ec8551662cb4056fadc14 Mon Sep 17 00:00:00 2001 From: Bruno Perel Date: Mon, 23 Oct 2023 22:08:22 +0200 Subject: [PATCH] Allow to pass a custom style to the conditions graph Bump submodule --- .../components/stats/ConditionsComponent.vue | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/apps/web/src/components/stats/ConditionsComponent.vue b/apps/web/src/components/stats/ConditionsComponent.vue index a265f1be4..d228fee44 100644 --- a/apps/web/src/components/stats/ConditionsComponent.vue +++ b/apps/web/src/components/stats/ConditionsComponent.vue @@ -1,5 +1,5 @@ @@ -17,16 +17,11 @@ import { } from "chart.js"; import { Pie } from "vue-chartjs"; -const props = withDefaults( - defineProps<{ - linkToCollectionIfNoIssue: boolean; - conditions: { dbValue: string; color: string; text: string }[]; - numberPerCondition: Record; - }>(), - { - linkToCollectionIfNoIssue: true, - }, -); +const props = defineProps<{ + conditions: { dbValue: string; color: string; text: string }[]; + numberPerCondition: Record; + style: Record; +}>(); Chart.register(Legend, PieController, Tooltip, Title, ArcElement); const values = computed(() => @@ -75,10 +70,8 @@ const options = computed(