fix: update enterprise feature handling in popups

This commit is contained in:
Piyush Gupta
2025-10-27 19:57:20 +05:30
parent 614a725e6f
commit 54a109f735
2 changed files with 5 additions and 3 deletions
@@ -203,7 +203,9 @@ export const PkiTemplateListPage = () => {
onClick={(e) => { onClick={(e) => {
e.stopPropagation(); e.stopPropagation();
if (!subscription.pkiEst) { if (!subscription.pkiEst) {
handlePopUpOpen("estUpgradePlan"); handlePopUpOpen("estUpgradePlan", {
isEnterpriseFeature: true
});
return; return;
} }
handlePopUpOpen("enrollmentOptions", { handlePopUpOpen("enrollmentOptions", {
@@ -296,7 +298,7 @@ export const PkiTemplateListPage = () => {
isOpen={popUp.estUpgradePlan.isOpen} isOpen={popUp.estUpgradePlan.isOpen}
onOpenChange={(isOpen) => handlePopUpToggle("estUpgradePlan", isOpen)} onOpenChange={(isOpen) => handlePopUpToggle("estUpgradePlan", isOpen)}
text="You can only configure template enrollment methods if you switch to Infisical's Enterprise plan." text="You can only configure template enrollment methods if you switch to Infisical's Enterprise plan."
isEnterpriseFeature={true} isEnterpriseFeature={popUp.estUpgradePlan.data?.isEnterpriseFeature}
/> />
</> </>
); );
@@ -596,7 +596,7 @@ export const AccessApprovalRequest = ({
)} )}
<UpgradePlanModal <UpgradePlanModal
text={""} text={popUp.upgradePlan.data?.description}
isOpen={popUp.upgradePlan.isOpen} isOpen={popUp.upgradePlan.isOpen}
onOpenChange={() => handlePopUpClose("upgradePlan")} onOpenChange={() => handlePopUpClose("upgradePlan")}
/> />