@@ -19,10 +19,10 @@ import {checkIsClustersPage, checkIsTenantPage, getClusterPath} from '../../rout
1919import { environment } from '../../store' ;
2020import {
2121 useAddClusterFeatureAvailable ,
22- useAllCapabilitiesLoaded ,
2322 useDatabasesAvailable ,
2423 useDeleteDatabaseFeatureAvailable ,
2524 useEditDatabaseFeatureAvailable ,
25+ useMetaCapabilitiesLoaded ,
2626} from '../../store/reducers/capabilities/hooks' ;
2727import { useClusterBaseInfo } from '../../store/reducers/cluster/cluster' ;
2828import { clustersApi } from '../../store/reducers/clusters/clusters' ;
@@ -51,7 +51,7 @@ import './Header.scss';
5151const b = cn ( 'header' ) ;
5252
5353function Header ( ) {
54- const capabilitiesLoaded = useAllCapabilitiesLoaded ( ) ;
54+ const metaCapabilitiesLoaded = useMetaCapabilitiesLoaded ( ) ;
5555 const { page, pageBreadcrumbsOptions} = useTypedSelector ( ( state ) => state . header ) ;
5656 const singleClusterMode = useTypedSelector ( ( state ) => state . singleClusterMode ) ;
5757 const isUserAllowedToMakeChanges = useIsUserAllowedToMakeChanges ( ) ;
@@ -73,7 +73,7 @@ function Header() {
7373
7474 const { isLoading : isClustersLoading , error : clustersError } =
7575 clustersApi . useGetClustersListQuery ( undefined , {
76- skip : ! isClustersPage || ! capabilitiesLoaded ,
76+ skip : ! isClustersPage || ! metaCapabilitiesLoaded ,
7777 } ) ;
7878
7979 const isAddClusterAvailable =
@@ -94,7 +94,7 @@ function Header() {
9494
9595 const { currentData : databaseData , isLoading : isDatabaseDataLoading } =
9696 tenantApi . useGetTenantInfoQuery ( params , {
97- skip : ! capabilitiesLoaded ,
97+ skip : ! metaCapabilitiesLoaded ,
9898 } ) ;
9999
100100 // Show Monitoring only when:
@@ -247,7 +247,7 @@ function Header() {
247247 } ;
248248
249249 const renderContent = ( ) => {
250- if ( ! capabilitiesLoaded ) {
250+ if ( ! metaCapabilitiesLoaded ) {
251251 return null ;
252252 }
253253 return (
0 commit comments