File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/containers/TabletsFilters Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import {Loader, Select} from '@gravity-ui/uikit';
99import ReactList from 'react-list' ;
1010
1111import Tablet from '../../components/Tablet/Tablet' ;
12+ import { AccessDenied } from '../../components/Errors/403' ;
1213
1314import { TABLET_COLOR_TO_STATES , TABLETS_STATES } from '../../utils/constants' ;
1415import { showTooltip , hideTooltip } from '../../store/reducers/tooltip' ;
@@ -212,6 +213,10 @@ class TabletsFilters extends React.Component {
212213 if ( loading && ! wasLoaded ) {
213214 return TabletsFilters . renderLoader ( ) ;
214215 } else if ( error && typeof error === 'object' ) {
216+ if ( error . status === 403 ) {
217+ return < AccessDenied /> ;
218+ }
219+
215220 return < div > { error . statusText } </ div > ;
216221 } else {
217222 return this . renderContent ( ) ;
You can’t perform that action at this time.
0 commit comments