move control panel to filterbox folder (#10346)
This commit is contained in:
parent
7075c2ff69
commit
7d10669ca8
|
|
@ -29,7 +29,6 @@ import DeckPath from '../explore/controlPanels/DeckPath';
|
|||
import DeckPolygon from '../explore/controlPanels/DeckPolygon';
|
||||
import DeckScatter from '../explore/controlPanels/DeckScatter';
|
||||
import DeckScreengrid from '../explore/controlPanels/DeckScreengrid';
|
||||
import FilterBox from '../explore/controlPanels/FilterBox';
|
||||
import Separator from '../explore/controlPanels/Separator';
|
||||
import TimeTable from '../explore/controlPanels/TimeTable';
|
||||
|
||||
|
|
@ -38,7 +37,6 @@ export default function setupPlugins() {
|
|||
|
||||
// TODO: Remove these shims once the control panel configs are moved into the plugin package.
|
||||
getChartControlPanelRegistry()
|
||||
.registerValue('filter_box', FilterBox)
|
||||
.registerValue('separator', Separator)
|
||||
.registerValue('time_table', TimeTable)
|
||||
.registerValue('deck_arc', DeckArc)
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import { t } from '@superset-ui/translation';
|
|||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
||||
import transformProps from './transformProps';
|
||||
import thumbnail from './images/thumbnail.png';
|
||||
import controlPanel from './controlPanel';
|
||||
|
||||
const metadata = new ChartMetadata({
|
||||
name: t('Filter Box'),
|
||||
|
|
@ -32,6 +33,7 @@ const metadata = new ChartMetadata({
|
|||
export default class FilterBoxChartPlugin extends ChartPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
controlPanel,
|
||||
metadata,
|
||||
transformProps,
|
||||
loadChart: () => import('./FilterBox.jsx'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue