| @@ -123,11 +123,8 @@ | ||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | editSettings( settings ) { |
| 126 | 126 | let chart = { ...this.state.chart }; |
| 127 | - if ( '1' !== settings.pagination ) { | |
| 128 | - delete settings.pageSize; | |
| 129 | - } | |
| 130 | 127 | chart['visualizer-settings'] = settings; |
| 131 | 128 | this.setState({ |
| 132 | 129 | chart, |
| 133 | 130 | isModified: true |
| @@ -468,20 +465,8 @@ | ||
| 468 | 465 | </Notice> |
| 469 | 466 | ); |
| 470 | 467 | } |
| 471 | 468 | |
| 472 | - if ( '1' === visualizerLocalize.isFullSiteEditor ) { | |
| 473 | - return ( | |
| 474 | - <Notice | |
| 475 | - status="error" | |
| 476 | - isDismissible={ false } | |
| 477 | - > | |
| 478 | - <Dashicon icon="chart-pie" /> | |
| 479 | - { __( 'Visualizer block charts are currently not available for selection here, you must visit the library, get the shortcode, and add the chart here in a shortcode tag.' ) } | |
| 480 | - </Notice> | |
| 481 | - ); | |
| 482 | - } | |
| 483 | - | |
| 484 | 469 | if ( 'renderChart' === this.state.route && null !== this.state.chart ) { |
| 485 | 470 | return ( |
| 486 | 471 | <ChartRender |
| 487 | 472 | id={ this.props.attributes.id } |
| @@ -595,9 +580,9 @@ | ||
| 595 | 580 | route = 'home'; |
| 596 | 581 | } else if ( 'chartSelect' === this.state.route ) { |
| 597 | 582 | route = 'showCharts'; |
| 598 | 583 | } |
| 599 | - this.setState({ route, isLoading: false }); | |
| 584 | + this.setState({ route }); | |
| 600 | 585 | this.props.setAttributes({ route }); |
| 601 | 586 | } } |
| 602 | 587 | > |
| 603 | 588 | { __( 'Back' ) } |