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/25 17:17:23 UTC

(superset) 08/10: 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 ba064aac4fd153c5e487fc5f0b9db07a23bb4f8a
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),
             },
           },
         ],