| @@ -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 } |
| @@ -586,9 +571,9 @@ | ||
| 586 | 571 | { ( 'showCharts' === this.state.route || 'chartSelect' === this.state.route ) && |
| 587 | 572 | <ButtonGroup> |
| 588 | 573 | |
| 589 | 574 | <Button |
| 590 | - variant="secondary" | |
| 575 | + isDefault | |
| 591 | 576 | isLarge |
| 592 | 577 | onClick={ () => { |
| 593 | 578 | let route; |
| 594 | 579 | if ( 'showCharts' === this.state.route ) { |
| @@ -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' ) } |
| @@ -607,9 +592,9 @@ | ||
| 607 | 592 | <Fragment> |
| 608 | 593 | |
| 609 | 594 | { false === this.state.isModified ? |
| 610 | 595 | <Button |
| 611 | - variant="secondary" | |
| 596 | + isDefault | |
| 612 | 597 | isLarge |
| 613 | 598 | className="visualizer-bttn-done" |
| 614 | 599 | onClick={ () => { |
| 615 | 600 | this.setState({ route: 'renderChart', isModified: true }); |