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
refactor: streamline ProjectPermissionCan component usage in SecretRotationItem for improved readability
Victor Santosa3eceee9b4d8
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsxindex efc9650de6..44ce8145da 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView/SecretRotationItem.tsx@@ -191,32 +191,32 @@ export const SecretRotationItem = ({(secretRotation.type === SecretRotation.WindowsLocalAccount &&secretRotation.parameters.rotationMethod ===WindowsLocalAccountRotationMethod.LoginAsTarget)) && (- <ProjectPermissionCan- I={ProjectPermissionSecretRotationActions.RotateSecrets}- a={subject(ProjectPermissionSub.SecretRotation, {- environment: environment.slug,- secretPath: folder.path- })}- renderTooltip- allowedLabel="Reconcile Secret"- >- {(isAllowed) => (- <IconButton- ariaLabel="Reconcile secret"- variant="plain"- size="sm"- isDisabled={!isAllowed}- className="w-0 overflow-hidden p-0 group-hover:w-5"- onClick={(e) => {- e.stopPropagation();- onReconcile();- }}- >- <FontAwesomeIcon icon={faHandshake} />- </IconButton>- )}- </ProjectPermissionCan>- )}+ <ProjectPermissionCan+ I={ProjectPermissionSecretRotationActions.RotateSecrets}+ a={subject(ProjectPermissionSub.SecretRotation, {+ environment: environment.slug,+ secretPath: folder.path+ })}+ renderTooltip+ allowedLabel="Reconcile Secret"+ >+ {(isAllowed) => (+ <IconButton+ ariaLabel="Reconcile secret"+ variant="plain"+ size="sm"+ isDisabled={!isAllowed}+ className="w-0 overflow-hidden p-0 group-hover:w-5"+ onClick={(e) => {+ e.stopPropagation();+ onReconcile();+ }}+ >+ <FontAwesomeIcon icon={faHandshake} />+ </IconButton>+ )}+ </ProjectPermissionCan>+ )}</div></div><AnimatePresence mode="wait">