You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/kubernetes/ingresses/IngressDatatable/columns/name.tsx

34 lines
760 B

import { CellProps, Column } from 'react-table';
import { Authorized } from '@/react/hooks/useUser';
import { Link } from '@@/Link';
import { Ingress } from '../../types';
export const name: Column<Ingress> = {
Header: 'Name',
accessor: 'Name',
Cell: ({ row }: CellProps<Ingress>) => (
<Authorized
authorizations="K8sIngressesW"
childrenUnauthorized={row.original.Name}
>
<Link
to="kubernetes.ingresses.edit"
params={{
uid: row.original.UID,
namespace: row.original.Namespace,
name: row.original.Name,
}}
title={row.original.Name}
>
{row.original.Name}
</Link>
</Authorized>
),
id: 'name',
disableFilters: true,
canHide: true,
};