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:
parent
26bb028ace
commit
946166319f
16 changed files with 291 additions and 260 deletions
|
@ -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}</>}
|
||||
</>
|
||||
),
|
||||
}),
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue