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