mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
refac: save only to db
This commit is contained in:
parent
ee913cb6e8
commit
f2285f29b7
3 changed files with 0 additions and 6 deletions
|
|
@ -22,8 +22,6 @@
|
|||
return;
|
||||
}
|
||||
settings.set({ ...$settings, models: selectedModels });
|
||||
|
||||
localStorage.setItem('settings', JSON.stringify($settings));
|
||||
await updateUserSettings(localStorage.token, { ui: $settings });
|
||||
|
||||
if ($user.role === 'admin') {
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@
|
|||
console.log(updated);
|
||||
await settings.set({ ...$settings, ...updated });
|
||||
await models.set(await getModels());
|
||||
|
||||
localStorage.setItem('settings', JSON.stringify($settings));
|
||||
await updateUserSettings(localStorage.token, { ui: $settings });
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -184,9 +184,7 @@
|
|||
|
||||
const saveSettings = async (updated) => {
|
||||
await settings.set({ ...$settings, ...updated });
|
||||
localStorage.setItem('settings', JSON.stringify($settings));
|
||||
await updateUserSettings(localStorage.token, { ui: $settings });
|
||||
|
||||
location.href = '/';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue