File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import {Search} from '../../components/Search';
99import { UsageFilter } from './UsageFilter' ;
1010import { AutoFetcher } from '../../utils/autofetcher' ;
1111import { TableSkeleton } from '../../components/TableSkeleton/TableSkeleton' ;
12+ import { AccessDenied } from '../../components/Errors/403' ;
1213
1314import {
1415 getStorageInfo ,
@@ -287,10 +288,17 @@ class Storage extends React.Component {
287288 const { loading, wasLoaded, error} = this . props ;
288289 const showLoader = loading && ! wasLoaded ;
289290
291+ if ( error ) {
292+ if ( error . status === 403 ) {
293+ return < AccessDenied /> ;
294+ }
295+
296+ return < div className = { b ( ) } > { error . statusText } </ div > ;
297+ }
298+
290299 return (
291300 < div className = { b ( ) } >
292301 { this . renderControls ( ) }
293- { error && < div > { error . statusText } </ div > }
294302 { showLoader ? this . renderLoader ( ) : this . renderDataTable ( ) }
295303 </ div >
296304 ) ;
You can’t perform that action at this time.
0 commit comments