You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ar...@apache.org on 2024/03/08 00:44:18 UTC

(superset) 08/09: Table with Time Comparison:

This is an automated email from the ASF dual-hosted git repository.

arivero pushed a commit to branch table-time-comparison
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 739a80e41f19ee7eba82d09ee039755cc94728d0
Author: Antonio Rivero <an...@gmail.com>
AuthorDate: Wed Mar 6 15:40:20 2024 +0100

    Table with Time Comparison:
    
    - When using time compariosn, columns cannot be rearranged
---
 superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx b/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
index c7710c81df..78a6a1eeab 100644
--- a/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
+++ b/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
@@ -520,6 +520,9 @@ const config: ControlPanelConfig = {
               description: t(
                 "Allow end user to drag-and-drop column headers to rearrange them. Note their changes won't persist for the next time they open the chart.",
               ),
+              visibility: ({ controls }) =>
+                !controls?.enable_time_comparison?.value ||
+                !isFeatureEnabled(FeatureFlag.ChartPluginsExperimental),
             },
           },
         ],