Hidden red notification in License menu when cluster is registered (#2678)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2023-02-21 19:12:03 -06:00
committed by GitHub
parent 1b4eacb587
commit c23aff45c8

View File

@@ -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;
}