1- import {
2- AnalyticalTable ,
3- AnalyticalTableColumnDefinition ,
4- } from '@ui5/webcomponents-react' ;
1+ import { AnalyticalTable , AnalyticalTableColumnDefinition } from '@ui5/webcomponents-react' ;
52import { ThemingParameters } from '@ui5/webcomponents-react-base' ;
63import { CopyButton } from '../Shared/CopyButton.tsx' ;
74import useLuigiNavigate from '../Shared/useLuigiNavigate.tsx' ;
@@ -14,6 +11,7 @@ import { ListProjectNames } from '../../lib/api/types/crate/listProjectNames';
1411import { t } from 'i18next' ;
1512import { YamlViewButtonWithLoader } from '../Yaml/YamlViewButtonWithLoader.tsx' ;
1613import { useMemo } from 'react' ;
14+ import { ProjectsListItemMenu } from './ProjectsListItemMenu.tsx' ;
1715
1816export default function ProjectsList ( ) {
1917 const navigate = useLuigiNavigate ( ) ;
@@ -94,6 +92,26 @@ export default function ProjectsList() {
9492 </ div >
9593 ) ,
9694 } ,
95+ {
96+ Header : t ( 'common.options' ) ,
97+ accessor : 'options' ,
98+ width : 85 ,
99+ disableFilters : true ,
100+ hAlign : 'Center' ,
101+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
102+ Cell : ( instance : any ) => (
103+ < div
104+ style = { {
105+ width : '100%' ,
106+ display : 'flex' ,
107+ justifyContent : 'end' ,
108+ alignItems : 'center' ,
109+ } }
110+ >
111+ < ProjectsListItemMenu setDialogDeleteProjectIsOpen = { ( ) => { } } />
112+ </ div >
113+ ) ,
114+ } ,
97115 ] ,
98116 [ ] ,
99117 ) ;
@@ -109,9 +127,7 @@ export default function ProjectsList() {
109127 data = { stabilizedData }
110128 // eslint-disable-next-line @typescript-eslint/no-explicit-any
111129 onRowClick = { ( e : any ) => {
112- navigate (
113- `/mcp/projects/${ data ? [ e . detail . row . values . projectName ] : '' } ` ,
114- ) ;
130+ navigate ( `/mcp/projects/${ data ? [ e . detail . row . values . projectName ] : '' } ` ) ;
115131 } }
116132 />
117133 </ >
0 commit comments