mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 14:27:59 +00:00
Fix: Completely hide org slug input field when org slug is passed or default slug is provided
This commit is contained in:
@@ -67,7 +67,7 @@ export const LoginLDAP = () => {
|
|||||||
What's your LDAP Login?
|
What's your LDAP Login?
|
||||||
</p>
|
</p>
|
||||||
<form onSubmit={handleSubmission}>
|
<form onSubmit={handleSubmission}>
|
||||||
{!config.defaultOrgSlug && (
|
{!config.defaultOrgSlug && !passedOrgSlug && (
|
||||||
<div className="relative mx-auto flex max-h-24 w-1/4 w-full min-w-[20rem] items-center justify-center rounded-lg md:max-h-28 md:min-w-[22rem] lg:w-1/6">
|
<div className="relative mx-auto flex max-h-24 w-1/4 w-full min-w-[20rem] items-center justify-center rounded-lg md:max-h-28 md:min-w-[22rem] lg:w-1/6">
|
||||||
<div className="flex max-h-24 w-full items-center justify-center rounded-lg md:max-h-28">
|
<div className="flex max-h-24 w-full items-center justify-center rounded-lg md:max-h-28">
|
||||||
<Input
|
<Input
|
||||||
@@ -79,7 +79,6 @@ export const LoginLDAP = () => {
|
|||||||
autoComplete="email"
|
autoComplete="email"
|
||||||
id="email"
|
id="email"
|
||||||
className="h-12"
|
className="h-12"
|
||||||
isDisabled={passedOrgSlug !== null}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user