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
improvement(pam): open request sheet when clicking a gated account row
bernie-g2290d536e4d3
diff --git a/frontend/src/pages/pam/PamAccessPage/components/AccountRow.tsx b/frontend/src/pages/pam/PamAccessPage/components/AccountRow.tsxindex 77f5808054..98e616247f 100644--- a/frontend/src/pages/pam/PamAccessPage/components/AccountRow.tsx+++ b/frontend/src/pages/pam/PamAccessPage/components/AccountRow.tsx@@ -39,7 +39,13 @@ export const AccountRow = ({ account, search, onLaunch, onRequestAccess, indenteconst needsApproval = requiresApproval && !isGranted && !isDisabled && canLaunch;const isPending = accessStatus === PamAccessStatus.Pending;const canLaunchNow = canLaunch && (!requiresApproval || isGranted);- const canClick = canLaunchNow && !needsApproval && !isDisabled;+ // Row click mirrors the action button: launch when possible, otherwise open the request sheet+ const rowAction = (() => {+ if (isDisabled) return undefined;+ if (needsApproval) return () => onRequestAccess(account);+ if (canLaunchNow) return () => onLaunch(account);+ return undefined;+ })();const renderAction = () => {if (isDisabled) {@@ -122,10 +128,7 @@ export const AccountRow = ({ account, search, onLaunch, onRequestAccess, indente};return (- <TableRow- className={canClick ? "cursor-pointer" : ""}- onClick={canClick ? () => onLaunch(account) : undefined}- >+ <TableRow className={rowAction ? "cursor-pointer" : ""} onClick={rowAction}><TableCell><div className={`flex items-center gap-2.5 ${indented ? "pl-[26px]" : ""}`}><AccountPlatformIcon accountType={account.accountType} size={20} />