2022-12-01 06:40:52 +00:00
|
|
|
import { withLimitToBE } from '@/react/hooks/useLimitToBE';
|
2022-04-19 18:43:36 +00:00
|
|
|
|
2022-06-22 17:11:46 +00:00
|
|
|
import { InformationPanel } from '@@/InformationPanel';
|
|
|
|
import { TextTip } from '@@/Tip/TextTip';
|
2022-06-17 16:18:42 +00:00
|
|
|
import { PageHeader } from '@@/PageHeader';
|
2023-05-05 02:02:31 +00:00
|
|
|
import { Link } from '@@/Link';
|
|
|
|
import { Alert } from '@@/Alert';
|
2022-06-17 16:18:42 +00:00
|
|
|
|
2022-11-22 12:16:34 +00:00
|
|
|
import { Datatable } from './Datatable';
|
2023-05-05 02:02:31 +00:00
|
|
|
import { useLicenseOverused, useUntrustedCount } from './queries';
|
2022-04-19 18:43:36 +00:00
|
|
|
|
2022-12-01 06:40:52 +00:00
|
|
|
export default withLimitToBE(WaitingRoomView);
|
|
|
|
|
|
|
|
function WaitingRoomView() {
|
2023-05-05 02:02:31 +00:00
|
|
|
const untrustedCount = useUntrustedCount();
|
2023-05-14 02:26:11 +00:00
|
|
|
const licenseOverused = useLicenseOverused(untrustedCount);
|
2022-04-19 18:43:36 +00:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<PageHeader
|
|
|
|
title="Waiting Room"
|
2023-07-19 19:44:37 +00:00
|
|
|
breadcrumbs={[{ label: 'Waiting Room' }]}
|
2023-11-22 01:21:07 +00:00
|
|
|
reload
|
2022-04-19 18:43:36 +00:00
|
|
|
/>
|
2022-06-22 17:11:46 +00:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2023-05-14 02:26:11 +00:00
|
|
|
{licenseOverused && (
|
2023-05-05 02:02:31 +00:00
|
|
|
<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>
|
|
|
|
)}
|
|
|
|
|
2023-03-06 20:25:04 +00:00
|
|
|
<Datatable />
|
2022-04-19 18:43:36 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|