@@ -15,6 +15,7 @@ import {PageMetaWithAutorefresh} from '../../components/PageMeta/PageMeta';
1515import routes from '../../routes' ;
1616import {
1717 useCapabilitiesLoaded ,
18+ useConfigAvailable ,
1819 useDiskPagesAvailable ,
1920} from '../../store/reducers/capabilities/hooks' ;
2021import { setHeaderBreadcrumbs } from '../../store/reducers/header/header' ;
@@ -43,6 +44,9 @@ const STORAGE_ROLE = 'Storage';
4344export function Node ( ) {
4445 const container = React . useRef < HTMLDivElement > ( null ) ;
4546 const isViewerUser = useIsViewerUser ( ) ;
47+ const hasConfigs = useConfigAvailable ( ) ;
48+
49+ const configsAvailable = isViewerUser && hasConfigs ;
4650
4751 const dispatch = useTypedDispatch ( ) ;
4852
@@ -78,7 +82,7 @@ export function Node() {
7882 if ( ! isStorageNode ) {
7983 skippedTabs . push ( 'storage' ) ;
8084 }
81- if ( ! isViewerUser ) {
85+ if ( ! configsAvailable ) {
8286 skippedTabs . push ( 'configs' ) ;
8387 }
8488 if ( isDiskPagesAvailable ) {
@@ -93,7 +97,7 @@ export function Node() {
9397 actualNodeTabs . find ( ( { id} ) => id === activeTabId ) ?? actualNodeTabs [ 0 ] ;
9498
9599 return { activeTab : actualActiveTab , nodeTabs : actualNodeTabs } ;
96- } , [ isStorageNode , isDiskPagesAvailable , activeTabId , threadsQuantity , isViewerUser ] ) ;
100+ } , [ isStorageNode , isDiskPagesAvailable , activeTabId , threadsQuantity , configsAvailable ] ) ;
97101
98102 const database = tenantNameFromQuery ?. toString ( ) ;
99103
0 commit comments