File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ export const ManagedControlPlaneAuthorization = ({ children }: ManagedControlPla
3232 // Check if user has access to CRDs in the MCP's cluster
3333 const { error, isLoading } = useApiResource ( CRDRequest ) ;
3434 if ( isLoading ) {
35- return < BusyIndicator active /> ;
35+ return (
36+ < Center >
37+ < BusyIndicator active />
38+ </ Center >
39+ ) ;
3640 }
3741 const isUserNotAuthorized = error ?. status === 403 || error ?. status === 401 ;
3842 if ( isUserNotAuthorized )
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import { Kustomizations } from '../../../components/ControlPlane/Kustomizations.
4242import { McpHeader } from '../components/McpHeader/McpHeader.tsx' ;
4343import { ComponentsDashboard } from '../components/ComponentsDashboard/ComponentsDashboard.tsx' ;
4444import { ManagedControlPlaneAuthorization } from '../authorization/ManagedControlPlaneAuthorization.tsx' ;
45+ import { Center } from '../../../components/Ui/Center/Center.tsx' ;
4546
4647export type McpPageSectionId = 'overview' | 'crossplane' | 'flux' | 'landscapers' ;
4748
@@ -74,7 +75,11 @@ export default function McpPage() {
7475 } ;
7576
7677 if ( isLoading ) {
77- return < BusyIndicator active /> ;
78+ return (
79+ < Center >
80+ < BusyIndicator active />
81+ </ Center >
82+ ) ;
7883 }
7984
8085 if ( ! projectName || ! workspaceName || ! controlPlaneName || isNotFoundError ( error ) ) {
You can’t perform that action at this time.
0 commit comments