← All changes
|
classes/Visualizer/Gutenberg/src/Components/ChartPermissions.js
+3
-7
3.1.1
→
3.7.9
View file →
| @@ -63,14 +63,10 @@ | ||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | render() { |
| 66 | 66 | |
| 67 | - let permissions; | |
| 67 | + let permissions = this.props.chart['visualizer-permissions']; | |
| 68 | 68 | |
| 69 | - if ( 'business' === visualizerLocalize.isPro ) { | |
| 70 | - permissions = this.props.chart['visualizer-permissions']; | |
| 71 | - } | |
| 72 | - | |
| 73 | 69 | return ( |
| 74 | 70 | <Fragment> |
| 75 | 71 | |
| 76 | 72 | { ( 'business' === visualizerLocalize.isPro ) ? |
| @@ -114,9 +110,9 @@ | ||
| 114 | 110 | icon="lock" |
| 115 | 111 | initialOpen={ false } |
| 116 | 112 | > |
| 117 | 113 | |
| 118 | - <p>{ __( 'Enable this feature in BUSINESS version!' ) }</p> | |
| 114 | + <p>{ __( 'Upgrade your license to at least the DEVELOPER version to activate this feature!' ) }</p> | |
| 119 | 115 | |
| 120 | 116 | <Button |
| 121 | 117 | isPrimary |
| 122 | 118 | href={ visualizerLocalize.proTeaser } |
| @@ -169,9 +165,9 @@ | ||
| 169 | 165 | icon="lock" |
| 170 | 166 | initialOpen={ false } |
| 171 | 167 | > |
| 172 | 168 | |
| 173 | - <p>{ __( 'Enable this feature in BUSINESS version!' ) }</p> | |
| 169 | + <p>{ __( 'Upgrade your license to at least the DEVELOPER version to activate this feature!' ) }</p> | |
| 174 | 170 | |
| 175 | 171 | <Button |
| 176 | 172 | isPrimary |
| 177 | 173 | href={ visualizerLocalize.proTeaser } |