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';
9
9
import ReactList from 'react-list' ;
10
10
11
11
import Tablet from '../../components/Tablet/Tablet' ;
12
+ import { AccessDenied } from '../../components/Errors/403' ;
12
13
13
14
import { TABLET_COLOR_TO_STATES , TABLETS_STATES } from '../../utils/constants' ;
14
15
import { showTooltip , hideTooltip } from '../../store/reducers/tooltip' ;
@@ -212,6 +213,10 @@ class TabletsFilters extends React.Component {
212
213
if ( loading && ! wasLoaded ) {
213
214
return TabletsFilters . renderLoader ( ) ;
214
215
} else if ( error && typeof error === 'object' ) {
216
+ if ( error . status === 403 ) {
217
+ return < AccessDenied /> ;
218
+ }
219
+
215
220
return < div > { error . statusText } </ div > ;
216
221
} else {
217
222
return this . renderContent ( ) ;
You can’t perform that action at this time.
0 commit comments