Merge pull request #14772 from silentoplayz/fix-save-for-LDAP

Fix: Ensure Consistent LDAP Settings Save
This commit is contained in:
Tim Jaeryang Baek 2025-06-08 13:03:17 +04:00 committed by GitHub
commit ffe7bdd213
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 7 deletions

View File

@ -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>

View File

@ -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();
}} }}