mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-24 05:44:07 +00:00
- +layout.svelte always merges adminDefaults with whatever user UI is
available (server-returned settings.ui, or localStorage, or {}). The
previous branch skipped defaults entirely when getUserSettings()
returned null, which is exactly the new-user case the feature
targets — admin defaults never reached users who hadn't customized
anything.
- InterfaceDefaultsForm.validate_chat_direction now accepts any casing
and normalizes to the shape the frontend store expects ('auto'
lowercase, 'LTR' / 'RTL' uppercase). The interface-settings toggle
cycles uppercase values, so admin saves with LTR/RTL were rejected
with 422 by the old lowercase-only validator.
- admin Settings/Interface.svelte adds the missing entry points: a
"Configure Defaults" button that toggles showInterfaceDefaultsModal
and a destructive "Reset All Users Interface Settings" button that
toggles showResetConfirmDialog. The flags and bound components were
already in place; nothing was flipping them.
- getInterfaceDefaults / setInterfaceDefaults / resetAllUsersInterfaceSettings
fall back through err.detail / err.message / stringification so
network-level failures (fetch TypeError, non-JSON body) surface as
thrown errors instead of resolving to null and letting callers treat
failed requests as silent successes.
|
||
|---|---|---|
| .. | ||
| data | ||
| open_webui | ||
| .dockerignore | ||
| .gitignore | ||
| dev.sh | ||
| requirements-min.txt | ||
| requirements.txt | ||
| start.sh | ||
| start_windows.bat | ||