mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
feat(app): migrate app containers to react [EE-5353] (#9992)
This commit is contained in:
parent
6290e9facc
commit
23295d2736
22 changed files with 312 additions and 297 deletions
|
@ -0,0 +1,24 @@
|
|||
import { Authorized } from '@/react/hooks/useUser';
|
||||
|
||||
import { Link } from '@@/Link';
|
||||
|
||||
import { columnHelper } from './helper';
|
||||
|
||||
export const node = columnHelper.accessor('nodeName', {
|
||||
header: 'Node',
|
||||
cell: ({ getValue }) => {
|
||||
const nodeName = getValue();
|
||||
return (
|
||||
<Authorized
|
||||
authorizations="K8sClusterNodeR"
|
||||
childrenUnauthorized={nodeName}
|
||||
>
|
||||
<Link to="kubernetes.cluster.node" params={{ nodeName }}>
|
||||
<div className="max-w-xs truncate" title={nodeName}>
|
||||
{nodeName}
|
||||
</div>
|
||||
</Link>
|
||||
</Authorized>
|
||||
);
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue