← All changes
|
classes/Visualizer/Gutenberg/src/Components/Import/RemoteImport.js
+19
-2
3.1.1
→
3.10.8
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 | } |
| @@ -80,8 +85,9 @@ | ||
| 80 | 85 | label={ __( 'How often do you want to check the url?' ) } |
| 81 | 86 | value={ this.props.chart['visualizer-chart-schedule'] ? this.props.chart['visualizer-chart-schedule'] : 1 } |
| 82 | 87 | options={ [ |
| 83 | 88 | { label: __( 'Each hour' ), value: '1' }, |
| 89 | + { label: __( 'Live' ), value: '0' }, | |
| 84 | 90 | { label: __( 'Each 12 hours' ), value: '12' }, |
| 85 | 91 | { label: __( 'Each day' ), value: '24' }, |
| 86 | 92 | { label: __( 'Each 3 days' ), value: '72' } |
| 87 | 93 | ] } |
| @@ -105,9 +111,9 @@ | ||
| 105 | 111 | className="visualizer-inner-sections" |
| 106 | 112 | initialOpen={ false } |
| 107 | 113 | > |
| 108 | 114 | |
| 109 | - <p>{ __( 'Enable this feature in BUSINESS version!' ) }</p> | |
| 115 | + <p>{ __( 'Upgrade your license to at least the DEVELOPER version to activate this feature!' ) }</p> | |
| 110 | 116 | |
| 111 | 117 | <Button |
| 112 | 118 | isPrimary |
| 113 | 119 | href={ visualizerLocalize.proTeaser } |
| @@ -112,13 +118,24 @@ | ||
| 112 | 118 | isPrimary |
| 113 | 119 | href={ visualizerLocalize.proTeaser } |
| 114 | 120 | target="_blank" |
| 115 | 121 | > |
| 116 | - { __( 'Buy Now' ) } | |
| 122 | + { __( 'Upgrade Now' ) } | |
| 117 | 123 | </Button> |
| 118 | 124 | |
| 119 | 125 | </PanelBody> |
| 120 | 126 | } |
| 127 | + | |
| 128 | + <JSONImport | |
| 129 | + id={ this.props.id } | |
| 130 | + chart={ this.props.chart } | |
| 131 | + editSchedule={ this.props.editJSONSchedule } | |
| 132 | + editJSONURL={ this.props.editJSONURL } | |
| 133 | + editJSONHeaders={ this.props.editJSONHeaders } | |
| 134 | + editJSONRoot={ this.props.editJSONRoot } | |
| 135 | + editJSONPaging={ this.props.editJSONPaging } | |
| 136 | + JSONImportData={ this.props.JSONImportData } | |
| 137 | + /> | |
| 121 | 138 | |
| 122 | 139 | </PanelBody> |
| 123 | 140 | ); |
| 124 | 141 | } |