Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(frontend): interactions SecretApprovalRequestAction

Alfonso Hernandezd301f74feba7
diff --git a/frontend/src/views/SecretApprovalPage/components/SecretApprovalRequest/components/SecretApprovalRequestAction.tsx b/frontend/src/views/SecretApprovalPage/components/SecretApprovalRequest/components/SecretApprovalRequestAction.tsx
index 05db75a9d6..f56695764b 100644
--- a/frontend/src/views/SecretApprovalPage/components/SecretApprovalRequest/components/SecretApprovalRequestAction.tsx
+++ b/frontend/src/views/SecretApprovalPage/components/SecretApprovalRequest/components/SecretApprovalRequestAction.tsx
@@ -134,8 +134,11 @@ export const SecretApprovalRequestAction = ({
Close request
</Button>
<Button
- leftIcon={<FontAwesomeIcon icon={isSoftEnforcement && !canApprove ? faLandMineOn : faCheck} />}
- isDisabled={!isMergable || (!byPassApproval && !canApprove)}
+ leftIcon={<FontAwesomeIcon icon={!canApprove ? faLandMineOn : faCheck} />}
+ isDisabled={
+ (!isMergable && canApprove)
+ || (!canApprove && isSoftEnforcement && !byPassApproval)
+ }
isLoading={isMerging}
onClick={handleSecretApprovalRequestMerge}
colorSchema={isSoftEnforcement && !canApprove ? "danger" : "primary"}