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