Skip to content

Commit

Permalink
migrating unique controls (#9374)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored Mar 26, 2020
1 parent cfa7868 commit b12188e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,6 @@ Note the `y_axis_format` is defined under various section for some charts.
| `grid_size` | _N/A_ | |
| `horizon_color_scale` | _N/A_ | |
| `import_time` | _N/A_ | |
| `include_series` | _N/A_ | |
| `instant_filtering` | _N/A_ | |
| `js_agg_function` | _N/A_ | |
| `js_columns` | _N/A_ | |
Expand Down Expand Up @@ -1188,7 +1187,6 @@ Note the `y_axis_format` is defined under various section for some charts.
| `show_brush` | _N/A_ | |
| `show_bubbles` | _N/A_ | |
| `show_controls` | _N/A_ | |
| `show_datatable` | _N/A_ | |
| `show_druid_time_granularity` | _N/A_ | |
| `show_druid_time_origin` | _N/A_ | |
| `show_labels` | _N/A_ | |
Expand Down
23 changes: 22 additions & 1 deletion superset-frontend/src/explore/controlPanels/Para.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,28 @@ export default {
label: t('Options'),
expanded: true,
controlSetRows: [
['show_datatable', 'include_series'],
[
{
name: 'show_datatable',
config: {
type: 'CheckboxControl',
label: t('Data Table'),
default: false,
renderTrigger: true,
description: t('Whether to display the interactive data table'),
},
},
{
name: 'include_series',
config: {
type: 'CheckboxControl',
label: t('Include Series'),
renderTrigger: true,
default: false,
description: t('Include series name as an axis'),
},
},
],
['linear_color_scheme'],
],
},
Expand Down
16 changes: 0 additions & 16 deletions superset-frontend/src/explore/controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,6 @@ export const controls = {
),
},

include_series: {
type: 'CheckboxControl',
label: t('Include Series'),
renderTrigger: true,
default: false,
description: t('Include series name as an axis'),
},

secondary_metric: {
...metric,
label: t('Color Metric'),
Expand Down Expand Up @@ -1364,14 +1356,6 @@ export const controls = {
description: t('Check to include Time Origin dropdown'),
},

show_datatable: {
type: 'CheckboxControl',
label: t('Data Table'),
default: false,
renderTrigger: true,
description: t('Whether to display the interactive data table'),
},

table_filter: {
type: 'CheckboxControl',
label: t('Emit Filter Events'),
Expand Down

0 comments on commit b12188e

Please sign in to comment.