mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 16:27:46 +00:00
fix(frontend): interactions SecretApprovalRequestAction
This commit is contained in:
+5
-2
@@ -134,8 +134,11 @@ export const SecretApprovalRequestAction = ({
|
|||||||
Close request
|
Close request
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
leftIcon={<FontAwesomeIcon icon={isSoftEnforcement && !canApprove ? faLandMineOn : faCheck} />}
|
leftIcon={<FontAwesomeIcon icon={!canApprove ? faLandMineOn : faCheck} />}
|
||||||
isDisabled={!isMergable || (!byPassApproval && !canApprove)}
|
isDisabled={
|
||||||
|
(!isMergable && canApprove)
|
||||||
|
|| (!canApprove && isSoftEnforcement && !byPassApproval)
|
||||||
|
}
|
||||||
isLoading={isMerging}
|
isLoading={isMerging}
|
||||||
onClick={handleSecretApprovalRequestMerge}
|
onClick={handleSecretApprovalRequestMerge}
|
||||||
colorSchema={isSoftEnforcement && !canApprove ? "danger" : "primary"}
|
colorSchema={isSoftEnforcement && !canApprove ? "danger" : "primary"}
|
||||||
|
|||||||
Reference in New Issue
Block a user