← All changes
|
classes/Visualizer/Gutenberg/src/Components/Import/ChartImport.js
+5
-2
3.1.3
→
3.10.8
View file →
| @@ -33,9 +33,11 @@ | ||
| 33 | 33 | let id; |
| 34 | 34 | |
| 35 | 35 | charts = charts.map( ( i, index ) => { |
| 36 | 36 | let label = i['chart_data']['visualizer-settings'].title ? i['chart_data']['visualizer-settings'].title : `#${i.id}`; |
| 37 | - | |
| 37 | + if ( 'object' === typeof label ) { | |
| 38 | + label = `#${i.id}`; | |
| 39 | + } | |
| 38 | 40 | if ( 0 === index ) { |
| 39 | 41 | id = i.id; |
| 40 | 42 | } |
| 41 | 43 | |
| @@ -70,8 +72,9 @@ | ||
| 70 | 72 | /> |
| 71 | 73 | |
| 72 | 74 | <Button |
| 73 | 75 | isPrimary |
| 76 | + isLarge | |
| 74 | 77 | isBusy={ 'getChartData' === this.props.isLoading } |
| 75 | 78 | onClick={ () => this.props.getChartData( this.state.id ) } |
| 76 | 79 | > |
| 77 | 80 | { __( 'Import Chart' ) } |
| @@ -96,9 +99,9 @@ | ||
| 96 | 99 | isPrimary |
| 97 | 100 | href={ visualizerLocalize.proTeaser } |
| 98 | 101 | target="_blank" |
| 99 | 102 | > |
| 100 | - { __( 'Buy Now' ) } | |
| 103 | + { __( 'Upgrade Now' ) } | |
| 101 | 104 | </Button> |
| 102 | 105 | |
| 103 | 106 | </PanelBody> |
| 104 | 107 | ); |