← All changes
|
classes/Visualizer/Gutenberg/src/Components/ChartPermissions.js
+9
-7
3.10.11
→
3.3.4
View file →
| @@ -63,10 +63,14 @@ | ||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | render() { |
| 66 | 66 | |
| 67 | - let permissions = this.props.chart['visualizer-permissions']; | |
| 67 | + let permissions; | |
| 68 | 68 | |
| 69 | + if ( 'business' === visualizerLocalize.isPro ) { | |
| 70 | + permissions = this.props.chart['visualizer-permissions']; | |
| 71 | + } | |
| 72 | + | |
| 69 | 73 | return ( |
| 70 | 74 | <Fragment> |
| 71 | 75 | |
| 72 | 76 | { ( 'business' === visualizerLocalize.isPro ) ? |
| @@ -72,9 +76,8 @@ | ||
| 72 | 76 | { ( 'business' === visualizerLocalize.isPro ) ? |
| 73 | 77 | <PanelBody |
| 74 | 78 | title={ __( 'Who can see this chart?' ) } |
| 75 | 79 | initialOpen={ false } |
| 76 | - className="vz-permission-tab" | |
| 77 | 80 | > |
| 78 | 81 | |
| 79 | 82 | <SelectControl |
| 80 | 83 | label={ __( 'Select who can view the chart on the front-end.' ) } |
| @@ -111,9 +114,9 @@ | ||
| 111 | 114 | icon="lock" |
| 112 | 115 | initialOpen={ false } |
| 113 | 116 | > |
| 114 | 117 | |
| 115 | - <p>{ __( 'Upgrade your license to at least the DEVELOPER version to activate this feature!' ) }</p> | |
| 118 | + <p>{ __( 'Enable this feature in BUSINESS version!' ) }</p> | |
| 116 | 119 | |
| 117 | 120 | <Button |
| 118 | 121 | isPrimary |
| 119 | 122 | href={ visualizerLocalize.proTeaser } |
| @@ -118,9 +121,9 @@ | ||
| 118 | 121 | isPrimary |
| 119 | 122 | href={ visualizerLocalize.proTeaser } |
| 120 | 123 | target="_blank" |
| 121 | 124 | > |
| 122 | - { __( 'Upgrade Now' ) } | |
| 125 | + { __( 'Buy Now' ) } | |
| 123 | 126 | </Button> |
| 124 | 127 | |
| 125 | 128 | </PanelBody> |
| 126 | 129 | } |
| @@ -128,9 +131,8 @@ | ||
| 128 | 131 | { ( 'business' === visualizerLocalize.isPro ) ? |
| 129 | 132 | <PanelBody |
| 130 | 133 | title={ __( 'Who can edit this chart?' ) } |
| 131 | 134 | initialOpen={ false } |
| 132 | - className="vz-permission-tab" | |
| 133 | 135 | > |
| 134 | 136 | |
| 135 | 137 | <SelectControl |
| 136 | 138 | label={ __( 'Select who can edit the chart on the front-end.' ) } |
| @@ -167,9 +169,9 @@ | ||
| 167 | 169 | icon="lock" |
| 168 | 170 | initialOpen={ false } |
| 169 | 171 | > |
| 170 | 172 | |
| 171 | - <p>{ __( 'Upgrade your license to at least the DEVELOPER version to activate this feature!' ) }</p> | |
| 173 | + <p>{ __( 'Enable this feature in BUSINESS version!' ) }</p> | |
| 172 | 174 | |
| 173 | 175 | <Button |
| 174 | 176 | isPrimary |
| 175 | 177 | href={ visualizerLocalize.proTeaser } |
| @@ -174,9 +176,9 @@ | ||
| 174 | 176 | isPrimary |
| 175 | 177 | href={ visualizerLocalize.proTeaser } |
| 176 | 178 | target="_blank" |
| 177 | 179 | > |
| 178 | - { __( 'Upgrade Now' ) } | |
| 180 | + { __( 'Buy Now' ) } | |
| 179 | 181 | </Button> |
| 180 | 182 | |
| 181 | 183 | </PanelBody> |
| 182 | 184 | } |