mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* refactor(edge/groups): load edge groups in selector fix(edge/stacks): remove double groups title * feat(edge): supply meta fields to edge script [EE-5043] * feat(edge): auto assign aeec envs to groups and tags [EE-5043] fix [EE-5043] fix(envs): fix global key test * fix(edge/groups): save group type * refactor(edge/devices): move loading of devices to table * refactor(tags): select paramter for query * feat(edge/devices): show meta fields * refactor(home): simplify filter * feat(edge/devices): filter by meta fields * refactor(edge/devices): break filter and loading hook
55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
import { CellProps, Column } from 'react-table';
|
|
|
|
import { WaitingRoomEnvironment } from '../types';
|
|
|
|
export const columns: readonly Column<WaitingRoomEnvironment>[] = [
|
|
{
|
|
Header: 'Name',
|
|
accessor: (row) => row.Name,
|
|
id: 'name',
|
|
disableFilters: true,
|
|
Filter: () => null,
|
|
canHide: false,
|
|
sortType: 'string',
|
|
},
|
|
{
|
|
Header: 'Edge ID',
|
|
accessor: (row) => row.EdgeID,
|
|
id: 'edge-id',
|
|
disableFilters: true,
|
|
Filter: () => null,
|
|
canHide: false,
|
|
sortType: 'string',
|
|
},
|
|
{
|
|
Header: 'Edge Groups',
|
|
accessor: (row) => row.EdgeGroups || [],
|
|
Cell: ({ value }: CellProps<WaitingRoomEnvironment, string[]>) =>
|
|
value.join(', ') || '-',
|
|
id: 'edge-groups',
|
|
disableFilters: true,
|
|
Filter: () => null,
|
|
canHide: false,
|
|
sortType: 'string',
|
|
},
|
|
{
|
|
Header: 'Group',
|
|
accessor: (row) => row.Group || '-',
|
|
id: 'group',
|
|
disableFilters: true,
|
|
Filter: () => null,
|
|
canHide: false,
|
|
sortType: 'string',
|
|
},
|
|
{
|
|
Header: 'Tags',
|
|
accessor: (row) => row.Tags || [],
|
|
Cell: ({ value }: CellProps<WaitingRoomEnvironment, string[]>) =>
|
|
value.join(', ') || '-',
|
|
id: 'tags',
|
|
disableFilters: true,
|
|
Filter: () => null,
|
|
canHide: false,
|
|
sortType: 'string',
|
|
},
|
|
] as const;
|