File tree 2 files changed +3
-1
lines changed
src/dashboard/Data/Browser 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -368,6 +368,7 @@ class Browser extends DashboardView {
368
368
this . props . schema
369
369
. dispatch ( ActionTypes . CREATE_CLASS , { className } )
370
370
. then ( ( ) => {
371
+ this . state . clp [ className ] = this . props . schema . data . get ( 'CLPs' ) . toJS ( ) [ className ] ;
371
372
this . state . counts [ className ] = 0 ;
372
373
this . props . navigate ( generatePath ( this . context , 'browser/' + className ) ) ;
373
374
} )
@@ -380,6 +381,7 @@ class Browser extends DashboardView {
380
381
this . props . schema . dispatch ( ActionTypes . DROP_CLASS , { className } ) . then (
381
382
( ) => {
382
383
this . setState ( { showDropClassDialog : false } ) ;
384
+ delete this . state . clp [ className ] ;
383
385
delete this . state . counts [ className ] ;
384
386
this . props . navigate ( generatePath ( this . context , 'browser' ) ) ;
385
387
} ,
Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ const BrowserToolbar = ({
341
341
disabled = { isPendingEditCloneRows }
342
342
/>
343
343
{ onAddRow && < div className = { styles . toolbarSeparator } /> }
344
- { perms && enableSecurityDialog ? (
344
+ { enableSecurityDialog ? (
345
345
< SecurityDialog
346
346
ref = { clpDialogRef }
347
347
disabled = { ! ! relation || ! ! isUnique }
You can’t perform that action at this time.
0 commit comments