move control panel to filterbox folder (#10346)

This commit is contained in:
Phillip Kelley-Dotson 2020-07-20 13:40:00 -07:00 committed by GitHub
parent 7075c2ff69
commit 7d10669ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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'),