mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Merge pull request #14772 from silentoplayz/fix-save-for-LDAP
Fix: Ensure Consistent LDAP Settings Save
This commit is contained in:
commit
ffe7bdd213
@ -79,6 +79,7 @@
|
|||||||
const updateHandler = async () => {
|
const updateHandler = async () => {
|
||||||
webhookUrl = await updateWebhookUrl(localStorage.token, webhookUrl);
|
webhookUrl = await updateWebhookUrl(localStorage.token, webhookUrl);
|
||||||
const res = await updateAdminConfig(localStorage.token, adminConfig);
|
const res = await updateAdminConfig(localStorage.token, adminConfig);
|
||||||
|
await updateLdapConfig(localStorage.token, ENABLE_LDAP);
|
||||||
await updateLdapServerHandler();
|
await updateLdapServerHandler();
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
@ -401,12 +402,7 @@
|
|||||||
<div class=" font-medium">{$i18n.t('LDAP')}</div>
|
<div class=" font-medium">{$i18n.t('LDAP')}</div>
|
||||||
|
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<Switch
|
<Switch bind:state={ENABLE_LDAP} />
|
||||||
bind:state={ENABLE_LDAP}
|
|
||||||
on:change={async () => {
|
|
||||||
updateLdapConfig(localStorage.token, ENABLE_LDAP);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<div class=" pt-1">
|
<div class=" pt-1">
|
||||||
<button
|
<button
|
||||||
class=" group-hover:text-gray-500 dark:text-gray-900 dark:hover:text-gray-300 transition"
|
class=" group-hover:text-gray-500 dark:text-gray-500 dark:hover:text-gray-300 transition"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
onDelete();
|
onDelete();
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user