Skip to content

Commit f4ff4f0

Browse files
committed
fixes
1 parent d3ae2ef commit f4ff4f0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/components/ControlPlanes/List/ControlPlaneListWorkspaceGridTile.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ export function ControlPlaneListWorkspaceGridTile({
127127
workspace={workspaceName}
128128
/>
129129
<span>
130-
<YamlViewButton
131-
workspaceName={workspace.metadata.namespace}
132-
resourceName={workspaceName}
133-
resourceType={'workspaces'}
134-
/>
135130
<Button
136131
design={ButtonDesign.Transparent}
137132
icon="delete"
138133
onClick={async () => {
139134
setDialogDeleteWsIsOpen(true);
140135
}}
141136
/>
137+
<YamlViewButton
138+
workspaceName={workspace.metadata.namespace}
139+
resourceName={workspaceName}
140+
resourceType={'workspaces'}
141+
/>
142142
</span>
143143
</div>
144144
}

src/components/Yaml/YamlViewButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Bar, Button, Dialog } from '@ui5/webcomponents-react';
22
import { FC, useState } from 'react';
33
import { YamlLoader } from './YamlLoader.tsx';
44
import { useTranslation } from 'react-i18next';
5+
import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js';
56

67
export type ResourceProps = {
78
workspaceName?: string;
@@ -39,6 +40,7 @@ export const YamlViewButton: FC<ResourceProps> = ({
3940
/>
4041
</Dialog>
4142
<Button
43+
design={ButtonDesign.Transparent}
4244
icon="document"
4345
aria-label={'View resource'}
4446
title={'View resource'}

src/views/ControlPlanes/ControlPlaneView.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ import { ManagedResources } from '@components/ControlPlane/ManagedResources.tsx'
2727
import { Providers } from '@components/ControlPlane/Providers.tsx';
2828
import { ProvidersConfig } from '@components/ControlPlane/ProvidersConfig.tsx';
2929

30-
import { YamlViewButton } from '@components/Yaml/YamlViewButton.tsx';
31-
3230
export default function ControlPlaneView() {
3331
const { projectName, workspaceName, controlPlaneName, contextName } =
3432
useParams();
@@ -85,11 +83,11 @@ export default function ControlPlaneView() {
8583
}}
8684
>
8785
<MCPHealthPopoverButton mcpStatus={mcp?.status} />
88-
<YamlViewButton
89-
workspaceName={mcp?.status?.access?.namespace}
90-
resourceType={'managedcontrolplanes'}
91-
resourceName={controlPlaneName}
92-
/>
86+
{/*<YamlViewButton*/}
87+
{/* workspaceName={mcp?.status?.access?.namespace}*/}
88+
{/* resourceType={'managedcontrolplanes'}*/}
89+
{/* resourceName={controlPlaneName}*/}
90+
{/*/>*/}
9391
<CopyKubeconfigButton />
9492
</div>
9593
}

0 commit comments

Comments
 (0)