mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(license): remove untrusted devices from node count [EE-5357] (#8817)
This commit is contained in:
parent
5f6ddc2fad
commit
cfed481d6e
7 changed files with 102 additions and 35 deletions
|
@ -3,12 +3,17 @@ 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 { willExceed } = useLicenseOverused();
|
||||
return (
|
||||
<>
|
||||
<PageHeader
|
||||
|
@ -27,6 +32,19 @@ function WaitingRoomView() {
|
|||
</TextTip>
|
||||
</InformationPanel>
|
||||
|
||||
{willExceed(untrustedCount) && (
|
||||
<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 />
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue