Skip to content

Commit 7832afe

Browse files
fix(Nodes): display access denied on 403
1 parent 6d20333 commit 7832afe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/containers/Nodes/Nodes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {Loader, TextInput, Label} from '@gravity-ui/uikit';
88

99
import ProblemFilter, {problemFilterType} from '../../components/ProblemFilter/ProblemFilter';
1010
import {Illustration} from '../../components/Illustration';
11+
import {AccessDenied} from '../../components/Errors/403';
1112

1213
import {hideTooltip, showTooltip} from '../../store/reducers/tooltip';
1314
import {withSearch} from '../../HOCS';
@@ -164,6 +165,10 @@ class Nodes extends React.Component {
164165
if (loading && !wasLoaded) {
165166
return Nodes.renderLoader();
166167
} else if (error) {
168+
if (error.status === 403) {
169+
return <AccessDenied />;
170+
}
171+
167172
return <div>{error.statusText}</div>;
168173
} else {
169174
return this.renderContent();

0 commit comments

Comments
 (0)