Skip to content

Commit c2b3815

Browse files
committed
fix
1 parent 7961d81 commit c2b3815

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/spaces/mcp/authorization/ManagedControlPlaneAuthorization.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

src/spaces/mcp/pages/McpPage.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import { Kustomizations } from '../../../components/ControlPlane/Kustomizations.
4242
import { McpHeader } from '../components/McpHeader/McpHeader.tsx';
4343
import { ComponentsDashboard } from '../components/ComponentsDashboard/ComponentsDashboard.tsx';
4444
import { ManagedControlPlaneAuthorization } from '../authorization/ManagedControlPlaneAuthorization.tsx';
45+
import { Center } from '../../../components/Ui/Center/Center.tsx';
4546

4647
export 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)) {

0 commit comments

Comments
 (0)