Build [v1.14.32]
This commit is contained in:
@@ -43,18 +43,12 @@ export default function LdapManager({
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
onClick={() => setLdapConfig({...ldapConfig, ldap_enabled: !ldapConfig.ldap_enabled})}
|
||||
className={cn(
|
||||
"w-10 h-5 relative transition-all duration-300 border",
|
||||
ldapConfig.ldap_enabled ? "bg-primary border-primary" : "bg-surface-bright border-border"
|
||||
)}
|
||||
>
|
||||
<div className={cn(
|
||||
"absolute top-0.5 w-3.5 h-3.5 bg-surface-container-lowest transition-all",
|
||||
ldapConfig.ldap_enabled ? "right-0.5" : "left-0.5"
|
||||
)} />
|
||||
</button>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={ldapConfig.ldap_enabled}
|
||||
onChange={(e) => setLdapConfig({...ldapConfig, ldap_enabled: e.target.checked})}
|
||||
className="toggle-pill"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="grid sm:grid-cols-2 gap-3">
|
||||
@@ -130,18 +124,12 @@ export default function LdapManager({
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
onClick={() => setLdapConfig({...ldapConfig, use_tls: !ldapConfig.use_tls})}
|
||||
className={cn(
|
||||
"w-10 h-5 relative transition-all duration-300 border",
|
||||
ldapConfig.use_tls ? "bg-primary border-primary" : "bg-surface-bright border-border"
|
||||
)}
|
||||
>
|
||||
<div className={cn(
|
||||
"absolute top-0.5 w-3.5 h-3.5 bg-surface-container-lowest transition-all",
|
||||
ldapConfig.use_tls ? "right-0.5" : "left-0.5"
|
||||
)} />
|
||||
</button>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={ldapConfig.use_tls}
|
||||
onChange={(e) => setLdapConfig({...ldapConfig, use_tls: e.target.checked})}
|
||||
className="toggle-pill"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex gap-2 pt-0">
|
||||
|
||||
Reference in New Issue
Block a user