File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/components/ControlPlanes/List Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import { ListControlPlanes } from '../../../lib/api/types/crate/controlPlanes.ts
3333import IllustratedError from '../../Shared/IllustratedError.tsx' ;
3434import { APIError } from '../../../lib/api/error.ts' ;
3535import { useTranslation } from 'react-i18next' ;
36+ import { YamlViewButton } from '@components/Yaml/YamlViewButton.tsx' ;
3637
3738interface 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 }
You can’t perform that action at this time.
0 commit comments