File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ let BrowserToolbar = ({
39
39
40
40
enableDeleteAllRows,
41
41
enableExportClass,
42
+ enableSecurityDialog,
42
43
} ) => {
43
44
let selectionLength = Object . keys ( selection ) . length ;
44
45
let details = [ ] ;
@@ -108,14 +109,14 @@ let BrowserToolbar = ({
108
109
filters = { filters }
109
110
onChange = { onFilterChange } />
110
111
< div className = { styles . toolbarSeparator } />
111
- < SecurityDialog
112
+ { enableSecurityDialog ? < SecurityDialog
112
113
setCurrent = { setCurrent }
113
114
disabled = { ! ! relation }
114
115
perms = { perms }
115
116
className = { classNameForPermissionsEditor }
116
117
updateCLP = { updateCLP }
117
- userPointers = { userPointers } />
118
- < div className = { styles . toolbarSeparator } />
118
+ userPointers = { userPointers } /> : < noscript /> }
119
+ { enableSecurityDialog ? < div className = { styles . toolbarSeparator } /> : < noscript /> }
119
120
{ menu }
120
121
</ Toolbar >
121
122
) ;
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ export default class DataBrowser extends React.Component {
198
198
setCurrent = { this . setCurrent . bind ( this ) }
199
199
enableDeleteAllRows = { this . context . currentApp . enabledFeatures . schemas . clearAllDataFromClass }
200
200
enableExportClass = { this . context . currentApp . enabledFeatures . schemas . exportClass }
201
+ enableSecurityDialog = { false /* this will eventually come from the enabledFeatures object, format TBD */ }
201
202
{ ...other } />
202
203
</ div >
203
204
) ;
You can’t perform that action at this time.
0 commit comments