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

View File

@@ -203,7 +203,9 @@ export const PkiTemplateListPage = () => {
onClick={(e) => {
e.stopPropagation();
if (!subscription.pkiEst) {
handlePopUpOpen("estUpgradePlan");
handlePopUpOpen("estUpgradePlan", {
isEnterpriseFeature: true
});
return;
}
handlePopUpOpen("enrollmentOptions", {
@@ -296,7 +298,7 @@ export const PkiTemplateListPage = () => {
isOpen={popUp.estUpgradePlan.isOpen}
onOpenChange={(isOpen) => handlePopUpToggle("estUpgradePlan", isOpen)}
text="You can only configure template enrollment methods if you switch to Infisical's Enterprise plan."
isEnterpriseFeature={true}
isEnterpriseFeature={popUp.estUpgradePlan.data?.isEnterpriseFeature}
/>
</>
);

View File

@@ -596,7 +596,7 @@ export const AccessApprovalRequest = ({
)}
<UpgradePlanModal
text={""}
text={popUp.upgradePlan.data?.description}
isOpen={popUp.upgradePlan.isOpen}
onOpenChange={() => handlePopUpClose("upgradePlan")}
/>