mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 11:07:55 -05:00
refac
This commit is contained in:
1 parent
62e5eab60b
commit
e6031ea6da
4 files changed
+72
-27
No files matched your search
@@ -268,6 +268,8 @@
|
||||
'full width mode',
|
||||
'haptic feedback',
|
||||
'hapticfeedback',
|
||||
'accessibility mode',
|
||||
'accessibilitymode',
|
||||
'high contrast mode',
|
||||
'highcontrastmode',
|
||||
'iframe sandbox allow forms',
|
||||
|
||||
@@ -490,13 +490,13 @@
|
||||
|
||||
<div>
|
||||
<div class={settingRowClass}>
|
||||
<div id="high-contrast-mode-label" class={settingLabelClass}>
|
||||
{$i18n.t('High Contrast Mode')}
|
||||
<div id="accessibility-mode-label" class={settingLabelClass}>
|
||||
{$i18n.t('Accessibility Mode')}
|
||||
</div>
|
||||
|
||||
<div class={settingControlClass}>
|
||||
<Switch
|
||||
ariaLabelledbyId="high-contrast-mode-label"
|
||||
ariaLabelledbyId="accessibility-mode-label"
|
||||
tooltip={true}
|
||||
bind:state={highContrastMode}
|
||||
inherited={isDefaultSetting('highContrastMode')}
|
||||
|
||||
@@ -272,6 +272,11 @@
|
||||
viewOption = localStorage?.workspaceViewOption || '';
|
||||
sourceOption = localStorage?.workspaceKnowledgeSourceOption || '';
|
||||
loaded = true;
|
||||
await tick();
|
||||
|
||||
if (items === null && !itemsLoading) {
|
||||
await init();
|
||||
}
|
||||
|
||||
if (showCreateOnMount) {
|
||||
showCreateModal = true;
|
||||
|
||||
Reference in new issue
Block a user