From 8abf9c24d00483a86c81947725bcca245590fb8e Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Tue, 17 Aug 2021 14:56:39 +0200 Subject: [PATCH] feat(explore): make dnd controls clickable (#16119) * Make ghost buttons clickable * Popover for column control * Make column dnd ghost button clickable * Prefill operator only if column is defined * Remove data-tests * lint fix * Hide new features behind a feature flag * Change ghost button texts * Remove caret for non clickable columns (cherry picked from commit 203c311ca30cba616bff5253ca561438da21c03e) --- .../controls/DndColumnSelectControl/DndColumnSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx b/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx index c85ea7878d7fc..69cc6442e26a4 100644 --- a/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx +++ b/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx @@ -16,8 +16,8 @@ * specific language governing permissions and limitations * under the License. */ -import React, { useCallback, useMemo } from 'react'; -import { tn } from '@superset-ui/core'; +import React, { useCallback, useMemo, useState } from 'react'; +import { FeatureFlag, isFeatureEnabled, tn } from '@superset-ui/core'; import { ColumnMeta } from '@superset-ui/chart-controls'; import { isEmpty } from 'lodash'; import { LabelProps } from 'src/explore/components/controls/DndColumnSelectControl/types';