File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
store/reducers/capabilities Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,7 @@ function DataWrapper({children}: {children: React.ReactNode}) {
178178 return (
179179 < GetUser >
180180 < GetNodesList />
181- < GetCapabilities />
182- { children }
181+ < GetCapabilities > { children } </ GetCapabilities >
183182 </ GetUser >
184183 ) ;
185184}
@@ -199,9 +198,14 @@ function GetNodesList() {
199198 return null ;
200199}
201200
202- function GetCapabilities ( ) {
203- useCapabilitiesQuery ( ) ;
204- return null ;
201+ function GetCapabilities ( { children} : { children : React . ReactNode } ) {
202+ const { isLoading} = useCapabilitiesQuery ( ) ;
203+
204+ return (
205+ < LoaderWrapper loading = { isLoading } size = "l" >
206+ { children }
207+ </ LoaderWrapper >
208+ ) ;
205209}
206210
207211interface ContentWrapperProps {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function useDatabaseFromQuery() {
1515export function useCapabilitiesQuery ( ) {
1616 const database = useDatabaseFromQuery ( ) ;
1717
18- capabilitiesApi . useGetClusterCapabilitiesQuery ( { database} ) ;
18+ return capabilitiesApi . useGetClusterCapabilitiesQuery ( { database} ) ;
1919}
2020
2121export function useCapabilitiesLoaded ( ) {
You can’t perform that action at this time.
0 commit comments