1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

feat(helm): auto refresh helm resources [r8s-298] (#672)

This commit is contained in:
Ali 2025-04-23 08:58:21 +12:00 committed by GitHub
parent 9a9373dd0f
commit 61d6ac035d
10 changed files with 120 additions and 50 deletions

View file

@ -6,11 +6,15 @@ import { ResourceRow } from '../types';
import { columnHelper } from './helper';
export const name = columnHelper.accessor((row) => row.name.label, {
header: 'Name',
cell: Cell,
id: 'name',
});
// `${row.name.label}/${row.resourceType}` reduces shuffling when the name is the same but the resourceType is different
export const name = columnHelper.accessor(
(row) => `${row.name.label}/${row.resourceType}`,
{
header: 'Name',
cell: Cell,
id: 'name',
}
);
function Cell({ row }: CellContext<ResourceRow, string>) {
const { name } = row.original;