mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
UX Tweaks
This commit is contained in:
@@ -42,7 +42,7 @@ export const LockoutTab = ({
|
||||
onCheckedChange={onChange}
|
||||
isChecked={value}
|
||||
>
|
||||
Lockout {value ? "Enabled" : "Disabled"}
|
||||
Lockout
|
||||
</Switch>
|
||||
</FormControl>
|
||||
);
|
||||
|
||||
@@ -67,9 +67,6 @@ export const LockoutFields = ({
|
||||
)}
|
||||
</OrgPermissionCan>
|
||||
</div>
|
||||
<IdentityAuthFieldDisplay label="Lockout">
|
||||
{data.lockoutEnabled ? "Enabled" : "Disabled"}
|
||||
</IdentityAuthFieldDisplay>
|
||||
<IdentityAuthFieldDisplay label="Lockout Threshold">
|
||||
{data.lockoutThreshold}
|
||||
</IdentityAuthFieldDisplay>
|
||||
|
||||
@@ -102,13 +102,18 @@ export const ViewIdentityLdapAuthContent = ({
|
||||
</Tooltip>
|
||||
)}
|
||||
</IdentityAuthFieldDisplay>
|
||||
<LockoutFields
|
||||
identityId={identityId}
|
||||
lockedOut={lockedOut}
|
||||
clearLockoutsResult={clearLockoutsResult}
|
||||
data={data}
|
||||
onResetAllLockouts={onResetAllLockouts}
|
||||
/>
|
||||
<IdentityAuthFieldDisplay label="Lockout">
|
||||
{data.lockoutEnabled ? "Enabled" : "Disabled"}
|
||||
</IdentityAuthFieldDisplay>
|
||||
{data.lockoutEnabled && (
|
||||
<LockoutFields
|
||||
identityId={identityId}
|
||||
lockedOut={lockedOut}
|
||||
clearLockoutsResult={clearLockoutsResult}
|
||||
data={data}
|
||||
onResetAllLockouts={onResetAllLockouts}
|
||||
/>
|
||||
)}
|
||||
</ViewIdentityContentWrapper>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -90,13 +90,18 @@ export const ViewIdentityUniversalAuthContent = ({
|
||||
<IdentityAuthFieldDisplay label="Client Secret Trusted IPs">
|
||||
{data.clientSecretTrustedIps.map((ip) => ip.ipAddress).join(", ")}
|
||||
</IdentityAuthFieldDisplay>
|
||||
<LockoutFields
|
||||
identityId={identityId}
|
||||
lockedOut={lockedOut}
|
||||
clearLockoutsResult={clearLockoutsResult}
|
||||
data={data}
|
||||
onResetAllLockouts={onResetAllLockouts}
|
||||
/>
|
||||
<IdentityAuthFieldDisplay label="Lockout">
|
||||
{data.lockoutEnabled ? "Enabled" : "Disabled"}
|
||||
</IdentityAuthFieldDisplay>
|
||||
{data.lockoutEnabled && (
|
||||
<LockoutFields
|
||||
identityId={identityId}
|
||||
lockedOut={lockedOut}
|
||||
clearLockoutsResult={clearLockoutsResult}
|
||||
data={data}
|
||||
onResetAllLockouts={onResetAllLockouts}
|
||||
/>
|
||||
)}
|
||||
<div className="col-span-2 my-3">
|
||||
<div className="mb-3 border-b border-mineshaft-500 pb-2">
|
||||
<span className="text-bunker-300">Client ID</span>
|
||||
|
||||
Reference in New Issue
Block a user