Skip to content

Commit 567154c

Browse files
committed
Update ControlPlaneListWorkspaceGridTile.tsx
1 parent 9e58f60 commit 567154c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/ControlPlanes/List/ControlPlaneListWorkspaceGridTile.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { ListControlPlanes } from '../../../lib/api/types/crate/controlPlanes.ts
3333
import IllustratedError from '../../Shared/IllustratedError.tsx';
3434
import { APIError } from '../../../lib/api/error.ts';
3535
import { useTranslation } from 'react-i18next';
36+
import { YamlViewButton } from '@components/Yaml/YamlViewButton.tsx';
3637

3738
interface Props {
3839
projectName: string;
@@ -103,7 +104,7 @@ export function ControlPlaneListWorkspaceGridTile({
103104
style={{
104105
width: '100%',
105106
display: 'grid',
106-
gridTemplateColumns: '0.3fr 0.24fr auto 0.05fr',
107+
gridTemplateColumns: '0.3fr 0.1fr 0.24fr auto 0.05fr',
107108
gap: '1rem',
108109
alignItems: 'center',
109110
}}
@@ -113,10 +114,17 @@ export function ControlPlaneListWorkspaceGridTile({
113114
{!isWorkspaceReady(workspace) ? '(Loading)' : ''}
114115
</Title>
115116

117+
<YamlViewButton
118+
workspaceName={workspace.metadata.namespace}
119+
resourceName={workspaceName}
120+
resourceType={'workspaces'}
121+
/>
122+
116123
<CopyButton
117124
text={workspace.status?.namespace || '-'}
118125
style={{ justifyContent: 'start' }}
119126
/>
127+
120128
<MembersAvatarView
121129
members={workspace.spec.members}
122130
project={projectName}

0 commit comments

Comments
 (0)