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:
parent
9a9373dd0f
commit
61d6ac035d
10 changed files with 120 additions and 50 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue