← All changes
|
classes/Visualizer/Gutenberg/src/Components/ChartPermissions.js
+5
-3
3.10.4
→
3.4.2
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.' ) } |
| @@ -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.' ) } |