From c23aff45c8b11bda23ab72dd1f7d316dbd7e8c0a Mon Sep 17 00:00:00 2001 From: Alex <33497058+bexsoft@users.noreply.github.com> Date: Tue, 21 Feb 2023 19:12:03 -0600 Subject: [PATCH] Hidden red notification in License menu when cluster is registered (#2678) Signed-off-by: Benjamin Perez --- portal-ui/src/screens/Console/Menu/LicenseBadge.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/portal-ui/src/screens/Console/Menu/LicenseBadge.tsx b/portal-ui/src/screens/Console/Menu/LicenseBadge.tsx index dc623ab5e..03fcf3ac9 100644 --- a/portal-ui/src/screens/Console/Menu/LicenseBadge.tsx +++ b/portal-ui/src/screens/Console/Menu/LicenseBadge.tsx @@ -20,6 +20,7 @@ import { AppState } from "../../../store"; import { Box } from "@mui/material"; import { CircleIcon } from "mds"; import { getLicenseConsent } from "../License/utils"; +import { registeredCluster } from "../../../config"; const LicenseBadge = () => { const licenseInfo = useSelector( @@ -27,10 +28,11 @@ const LicenseBadge = () => { ); const isAgplAckDone = getLicenseConsent(); + const clusterRegistered = registeredCluster(); const { plan = "" } = licenseInfo || {}; - if (plan || isAgplAckDone) { + if (plan || isAgplAckDone || clusterRegistered) { return null; }