1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-18 21:09:40 +02:00
portainer/app/react/edge/edge-devices/WaitingRoomView/WaitingRoomView.tsx
Ali 4096bb562d
feat(cache): introduce cache option [EE-6293] (#10672)
Co-authored-by: testa113 <testa113>
2023-11-22 14:21:07 +13:00

49 lines
1.4 KiB
TypeScript

import { withLimitToBE } from '@/react/hooks/useLimitToBE';
import { InformationPanel } from '@@/InformationPanel';
import { TextTip } from '@@/Tip/TextTip';
import { PageHeader } from '@@/PageHeader';
import { Link } from '@@/Link';
import { Alert } from '@@/Alert';
import { Datatable } from './Datatable';
import { useLicenseOverused, useUntrustedCount } from './queries';
export default withLimitToBE(WaitingRoomView);
function WaitingRoomView() {
const untrustedCount = useUntrustedCount();
const licenseOverused = useLicenseOverused(untrustedCount);
return (
<>
<PageHeader
title="Waiting Room"
breadcrumbs={[{ label: 'Waiting Room' }]}
reload
/>
<InformationPanel>
<TextTip color="blue">
Only environments generated from the AEEC script will appear here,
manually added environments and edge devices will bypass the waiting
room.
</TextTip>
</InformationPanel>
{licenseOverused && (
<div className="row">
<div className="col-sm-12">
<Alert color="warn">
Associating all nodes in waiting room will exceed the node limit
of your current license. Go to{' '}
<Link to="portainer.licenses">Licenses</Link> page to view the
current usage.
</Alert>
</div>
</div>
)}
<Datatable />
</>
);
}