Skip to content

Commit

Permalink
Fix: Completely hide org slug input field when org slug is passed or …
Browse files Browse the repository at this point in the history
…default slug is provided
  • Loading branch information
DanielHougaard committed Jun 20, 2024
1 parent 7c94c92 commit c3aa985
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/views/Login/LoginLDAP.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const LoginLDAP = () => {
What's your LDAP Login?
</p>
<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="flex max-h-24 w-full items-center justify-center rounded-lg md:max-h-28">
<Input
Expand All @@ -79,7 +79,6 @@ export const LoginLDAP = () => {
autoComplete="email"
id="email"
className="h-12"
isDisabled={passedOrgSlug !== null}
/>
</div>
</div>
Expand Down

0 comments on commit c3aa985

Please sign in to comment.