1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

refactor(kube/apps): migrate integrated apps table to react [EE-4690] (#11025)

This commit is contained in:
Chaim Lev-Ari 2024-04-02 22:37:47 +03:00 committed by GitHub
parent 26bb028ace
commit 946166319f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 291 additions and 260 deletions

View file

@ -0,0 +1,22 @@
import { truncate } from '@/portainer/filters/filters';
import { helper } from './columns.helper';
import { name } from './columns.name';
export const columns = [
name,
helper.accessor('StackName', {
header: 'Stack',
cell: ({ getValue }) => getValue() || '-',
}),
helper.accessor('Image', {
header: 'Image',
cell: ({ row: { original: item } }) => (
<>
{truncate(item.Image, 64)}
{item.Containers?.length > 1 && <>+ {item.Containers.length - 1}</>}
</>
),
}),
];