mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 23:39:41 +02:00
Some checks failed
ci / build_images (map[arch:amd64 platform:linux version:]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
ci / build_images (map[arch:arm platform:linux version:]) (push) Has been cancelled
ci / build_images (map[arch:arm64 platform:linux version:]) (push) Has been cancelled
ci / build_images (map[arch:ppc64le platform:linux version:]) (push) Has been cancelled
/ triage (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Test / test-client (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:linux]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
Test / test-server (map[arch:arm64 platform:linux]) (push) Has been cancelled
ci / build_manifests (push) Has been cancelled
64 lines
1.9 KiB
TypeScript
64 lines
1.9 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
|
|
/>
|
|
|
|
<div className="row">
|
|
<div className="col-sm-12">
|
|
<InformationPanel>
|
|
<TextTip color="blue">
|
|
Only environments generated from the{' '}
|
|
<Link
|
|
to="portainer.endpoints.edgeAutoCreateScript"
|
|
data-cy="waitingRoom-edgeAutoCreateScriptLink"
|
|
>
|
|
auto onboarding
|
|
</Link>{' '}
|
|
script will appear here, manually added environments and edge
|
|
devices will bypass the waiting room.
|
|
</TextTip>
|
|
</InformationPanel>
|
|
</div>
|
|
</div>
|
|
|
|
{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"
|
|
data-cy="waitingRoom-portainerLicensesLink"
|
|
>
|
|
Licenses
|
|
</Link>{' '}
|
|
page to view the current usage.
|
|
</Alert>
|
|
</div>
|
|
</div>
|
|
)}
|
|
|
|
<Datatable />
|
|
</>
|
|
);
|
|
}
|