File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
components/PermissionsCollaboratorDialog Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -83,19 +83,21 @@ export default class PermissionsCollaboratorDialog extends React.Component {
83
83
customFeaturesPermissions,
84
84
defaultFeaturesPermissions,
85
85
features,
86
- classesPermissions
86
+ classesPermissions,
87
+ isGDPR
87
88
} ) {
88
89
super ( ) ;
89
90
90
91
const isDefaultFeatures = lodash . isEqual ( customFeaturesPermissions , defaultFeaturesPermissions )
91
- const selectedClassesTab = customFeaturesPermissions [ 'classes' ] === 'Custom' ? 'CustomClasses' : customFeaturesPermissions [ 'classes' ]
92
+ const selectedClassesTab = ! customFeaturesPermissions [ 'classes' ] ? 'Write' : ( customFeaturesPermissions [ 'classes' ] === 'Custom' ? 'CustomClasses' : customFeaturesPermissions [ 'classes' ] )
92
93
93
94
this . state = {
94
95
transitioning : false ,
95
96
showLevels : false ,
96
97
level : 'Simple' , // 'Simple' | 'Advanced'
97
98
customFeaturesPermissions,
98
99
features,
100
+ isGDPR,
99
101
isDefaultFeatures,
100
102
isFeaturesSelected : true ,
101
103
selectedFeaturesTab : ( isDefaultFeatures ? 'Default' : 'CustomFeatures' ) ,
@@ -189,7 +191,7 @@ export default class PermissionsCollaboratorDialog extends React.Component {
189
191
< Tab onClick = { ( ) => this . setState ( { isFeaturesSelected : true } ) } >
190
192
Features
191
193
</ Tab >
192
- < Tab onClick = { ( ) => this . setState ( { isFeaturesSelected : false } ) } >
194
+ < Tab style = { this . state . isGDPR ? { } : { display : 'none' } } onClick = { ( ) => this . setState ( { isFeaturesSelected : false } ) } >
193
195
Classes
194
196
</ Tab >
195
197
</ TabList >
Original file line number Diff line number Diff line change @@ -441,4 +441,3 @@ p.description {
441
441
.centralizedText {
442
442
text-align : center
443
443
}
444
-
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ export default class Collaborators extends React.Component {
175
175
description = 'Configure how this user can access the App features.'
176
176
advanced = { false }
177
177
confirmText = 'Save'
178
+ isGDPR = { this . context . currentApp . custom && this . context . currentApp . custom . isGDPR }
178
179
customFeaturesPermissions = {
179
180
(
180
181
( this . state . toEdit && this . state . currentFeaturesPermissions ) ?
You can’t perform that action at this time.
0 commit comments