Skip to content

Commit 94ee4b8

Browse files
add for backward compatibility on dev instances
1 parent a7f8a13 commit 94ee4b8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

classes/Visualizer/Gutenberg/src/Components/Sidebar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ class Sidebar extends Component {
4848

4949
<GeneralSettings chart={ this.props.chart } edit={ this.props.edit } />
5050

51-
{ ( -1 >= [ 'tabular', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
51+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
5252
<HorizontalAxisSettings chart={ this.props.chart } edit={ this.props.edit } />
5353
) }
5454

55-
{ ( -1 >= [ 'tabular', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
55+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
5656
<VerticalAxisSettings chart={ this.props.chart } edit={ this.props.edit } />
5757
) }
5858

@@ -100,7 +100,7 @@ class Sidebar extends Component {
100100
<TimelineSettings chart={ this.props.chart } edit={ this.props.edit } />
101101
) }
102102

103-
{ ( 0 <= [ 'tabular' ].indexOf( type ) ) && (
103+
{ ( 0 <= [ 'tabular', 'dataTable' ].indexOf( type ) ) && (
104104
<Fragment>
105105

106106
<TableSettings chart={ this.props.chart } edit={ this.props.edit } />

classes/Visualizer/Gutenberg/src/Components/Sidebar/GeneralSettings.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class GeneralSettings extends Component {
5757
} }
5858
/>
5959

60-
{ ( -1 >= [ 'tabular', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
60+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
6161
<SelectControl
6262
label={ __( 'Chart Title Position' ) }
6363
help={ __( 'Where to place the chart title, compared to the chart area.' ) }
@@ -74,7 +74,7 @@ class GeneralSettings extends Component {
7474
/>
7575
) }
7676

77-
{ ( -1 >= [ 'tabular', 'gauge', 'geo', 'timeline' ].indexOf( type ) ) && (
77+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo', 'timeline' ].indexOf( type ) ) && (
7878
<BaseControl
7979
label={ __( 'Chart Title Color' ) }
8080
>
@@ -88,7 +88,7 @@ class GeneralSettings extends Component {
8888
</BaseControl>
8989
) }
9090

91-
{ ( -1 >= [ 'tabular', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
91+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
9292
<SelectControl
9393
label={ __( 'Axes Titles Position' ) }
9494
help={ __( 'Determines where to place the axis titles, compared to the chart area.' ) }
@@ -107,7 +107,7 @@ class GeneralSettings extends Component {
107107

108108
</PanelBody>
109109

110-
{ ( -1 >= [ 'tabular', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
110+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
111111
<PanelBody
112112
title={ __( 'Font Styles' ) }
113113
className="visualizer-inner-sections"
@@ -167,7 +167,7 @@ class GeneralSettings extends Component {
167167
</PanelBody>
168168
) }
169169

170-
{ ( -1 >= [ 'tabular', 'gauge', 'geo', 'timeline' ].indexOf( type ) ) && (
170+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo', 'timeline' ].indexOf( type ) ) && (
171171
<PanelBody
172172
title={ __( 'Legend' ) }
173173
className="visualizer-inner-sections"
@@ -230,7 +230,7 @@ class GeneralSettings extends Component {
230230
</PanelBody>
231231
) }
232232

233-
{ ( -1 >= [ 'tabular', 'gauge', 'geo' ].indexOf( type ) ) && (
233+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo' ].indexOf( type ) ) && (
234234
<PanelBody
235235
title={ __( 'Tooltip' ) }
236236
className="visualizer-inner-sections"
@@ -282,7 +282,7 @@ class GeneralSettings extends Component {
282282
</PanelBody>
283283
) }
284284

285-
{ ( -1 >= [ 'tabular', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
285+
{ ( -1 >= [ 'tabular', 'dataTable', 'gauge', 'geo', 'pie', 'timeline' ].indexOf( type ) ) && (
286286
<PanelBody
287287
title={ __( 'Animation' ) }
288288
className="visualizer-inner-sections"

0 commit comments

Comments
 (0)