rusackas commented on code in PR #32346:
URL: https://github.com/apache/superset/pull/32346#discussion_r1965988749


##########
superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx:
##########
@@ -44,6 +44,18 @@ export const showLegendControl: ControlSetItem = {
   },
 };
 
+export const showLegendToggleControl: ControlSetItem = {
+  name: 'show_legend_toggle',
+  config: {
+    type: 'CheckboxControl',
+    label: t('Show All/Invert buttons in legend'),
+    renderTrigger: true,
+    default: true,  // ✅ Par défaut, les boutons sont affichés
+    description: t('Toggle to show/hide the "All/Invert" buttons in the 
legend.'),
+    visibility: ({ controls }: ControlPanelsContainerProps) =>
+      Boolean(controls?.show_legend?.value),  // ✅ S'affiche seulement si la 
légende est activée

Review Comment:
   It might be helpful (for most of us, anyway) to have comments in English :D 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to