From ef298f5a228f7095230658ad01e0d08d169c95a9 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Thu, 17 Mar 2022 18:46:04 -0700 Subject: [PATCH] Restore `colors` parameter of donut chart partial This parameter was accidentally disconnected in commit c967a0b9a41409cf8ebcd2663edf873a66ab6a54 but is still used by `app/views/admin/conferences/index.html.haml` and `app/views/admin/events/index.html.haml`. --- app/views/application/_donut_chart.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/application/_donut_chart.haml b/app/views/application/_donut_chart.haml index 8a65e390..3c91cdc4 100644 --- a/app/views/application/_donut_chart.haml +++ b/app/views/application/_donut_chart.haml @@ -1,8 +1,9 @@ :ruby combined_data ||= {} data ||= chart_values(combined_data) + colors ||= chart_colors(combined_data) .text-center %h4 = title - = pie_chart data, donut: true, legend: 'bottom', download: true, messages: { empty: 'No data' }, colors: chart_colors(combined_data) + = pie_chart data, donut: true, legend: 'bottom', download: true, messages: { empty: 'No data' }, colors: colors