Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Add empty state and improve upgrade plan logic on Identity Auth Templates
Carlos Monastyrskiaab1a0297ead
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplatesTable.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplatesTable.tsxindex cb0644ae78..406f124dcb 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplatesTable.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplatesTable.tsx@@ -265,7 +265,7 @@ export const IdentityAuthTemplatesTable = ({ handlePopUpOpen }: Props) => {onChangePerPage={handlePerPageChange}/>)}- {!isPending && data && templates.length === 0 && (+ {!isPending && templates.length === 0 && (<EmptyStatetitle={debouncedSearch.trim().length > 0diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsxindex 1fa88e10df..791fdb716d 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx@@ -180,7 +180,13 @@ export const IdentitySection = withPermission(colorSchema="secondary"type="submit"leftIcon={<FontAwesomeIcon icon={faPlus} />}- onClick={() => handlePopUpOpen("createTemplate")}+ onClick={() => {+ if (subscription && !subscription.kmip) {+ handlePopUpOpen("upgradePlan");+ return;+ }+ handlePopUpOpen("createTemplate");+ }}isDisabled={!isAllowed}>Create Template@@ -244,7 +250,7 @@ export const IdentitySection = withPermission(<UpgradePlanModalisOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}- text={(popUp.upgradePlan?.data as { description: string })?.description}+ text="You can use Identity Auth Templates if you switch to Infisical's Enterprise plan."/></div>);