← All changes
|
classes/Visualizer/Gutenberg/src/Components/Import/RemoteImport.js
+17
-1
3.1.1
→
3.7.9
View file →
| @@ -12,8 +12,13 @@ | ||
| 12 | 12 | SelectControl, |
| 13 | 13 | TextControl |
| 14 | 14 | } = wp.components; |
| 15 | 15 | |
| 16 | +/** | |
| 17 | + * Internal dependencies | |
| 18 | + */ | |
| 19 | +import JSONImport from './JSONImport.js'; | |
| 20 | + | |
| 16 | 21 | class RemoteImport extends Component { |
| 17 | 22 | constructor() { |
| 18 | 23 | super( ...arguments ); |
| 19 | 24 | } |
| @@ -105,9 +110,9 @@ | ||
| 105 | 110 | className="visualizer-inner-sections" |
| 106 | 111 | initialOpen={ false } |
| 107 | 112 | > |
| 108 | 113 | |
| 109 | - <p>{ __( 'Enable this feature in BUSINESS version!' ) }</p> | |
| 114 | + <p>{ __( 'Upgrade your license to at least the DEVELOPER version to activate this feature!' ) }</p> | |
| 110 | 115 | |
| 111 | 116 | <Button |
| 112 | 117 | isPrimary |
| 113 | 118 | href={ visualizerLocalize.proTeaser } |
| @@ -117,8 +122,19 @@ | ||
| 117 | 122 | </Button> |
| 118 | 123 | |
| 119 | 124 | </PanelBody> |
| 120 | 125 | } |
| 126 | + | |
| 127 | + <JSONImport | |
| 128 | + id={ this.props.id } | |
| 129 | + chart={ this.props.chart } | |
| 130 | + editSchedule={ this.props.editJSONSchedule } | |
| 131 | + editJSONURL={ this.props.editJSONURL } | |
| 132 | + editJSONHeaders={ this.props.editJSONHeaders } | |
| 133 | + editJSONRoot={ this.props.editJSONRoot } | |
| 134 | + editJSONPaging={ this.props.editJSONPaging } | |
| 135 | + JSONImportData={ this.props.JSONImportData } | |
| 136 | + /> | |
| 121 | 137 | |
| 122 | 138 | </PanelBody> |
| 123 | 139 | ); |
| 124 | 140 | } |