Skip to content

Commit c23aff4

Browse files
authored
Hidden red notification in License menu when cluster is registered (#2678)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent 1b4eacb commit c23aff4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

portal-ui/src/screens/Console/Menu/LicenseBadge.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,19 @@ import { AppState } from "../../../store";
2020
import { Box } from "@mui/material";
2121
import { CircleIcon } from "mds";
2222
import { getLicenseConsent } from "../License/utils";
23+
import { registeredCluster } from "../../../config";
2324

2425
const LicenseBadge = () => {
2526
const licenseInfo = useSelector(
2627
(state: AppState) => state?.system?.licenseInfo
2728
);
2829

2930
const isAgplAckDone = getLicenseConsent();
31+
const clusterRegistered = registeredCluster();
3032

3133
const { plan = "" } = licenseInfo || {};
3234

33-
if (plan || isAgplAckDone) {
35+
if (plan || isAgplAckDone || clusterRegistered) {
3436
return null;
3537
}
3638

0 commit comments

Comments
 (0)