← All changes
|
classes/Visualizer/Gutenberg/src/Components/Sidebar/GeneralSettings.js
+3
-11
3.10.13
→
3.4.7
View file →
| @@ -45,14 +45,8 @@ | ||
| 45 | 45 | if ( 'pie' !== type ) { |
| 46 | 46 | positions.push({ label: __( 'Inside the chart' ), value: 'in' }); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - if ( 'bubble' === type ) { | |
| 50 | - positions = positions.filter( function( obj ) { | |
| 51 | - return 'left' !== obj.value; | |
| 52 | - }); | |
| 53 | - } | |
| 54 | - | |
| 55 | 49 | let titleHelp = __( 'Text to display above the chart.' ); |
| 56 | 50 | if ( 0 <= [ 'tabular', 'dataTable', 'gauge', 'geo', 'timeline' ].indexOf( type ) ) { |
| 57 | 51 | titleHelp = __( 'Text to display in the back-end admin area' ); |
| 58 | 52 | } |
| @@ -205,13 +199,11 @@ | ||
| 205 | 199 | onChange={ e => { |
| 206 | 200 | if ( 'pie' !== type ) { |
| 207 | 201 | let axis = 'left' === e ? 1 : 0; |
| 208 | 202 | |
| 209 | - if ( settings.series ) { | |
| 210 | - Object.keys( settings.series ).map( i => { | |
| 211 | - settings.series[i].targetAxisIndex = axis; | |
| 212 | - }); | |
| 213 | - } | |
| 203 | + Object.keys( settings.series ).map( i => { | |
| 204 | + settings.series[i].targetAxisIndex = axis; | |
| 205 | + }); | |
| 214 | 206 | } |
| 215 | 207 | |
| 216 | 208 | settings.legend.position = e; |
| 217 | 209 | this.props.edit( settings ); |