mirror of
https://github.com/open-webui/open-webui
synced 2025-06-09 07:56:42 +00:00
refac
This commit is contained in:
parent
0809eb79b8
commit
1277579f71
@ -45,7 +45,7 @@
|
|||||||
})}
|
})}
|
||||||
placement="top-start"
|
placement="top-start"
|
||||||
>
|
>
|
||||||
{#if !(config?.enabled ?? true)}
|
{#if !(config?.enable ?? true)}
|
||||||
<div
|
<div
|
||||||
class="absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-white dark:bg-gray-900 z-10"
|
class="absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-white dark:bg-gray-900 z-10"
|
||||||
></div>
|
></div>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
let key = '';
|
let key = '';
|
||||||
|
|
||||||
let prefixId = '';
|
let prefixId = '';
|
||||||
let enabled = true;
|
let enable = true;
|
||||||
|
|
||||||
let modelId = '';
|
let modelId = '';
|
||||||
let modelIds = [];
|
let modelIds = [];
|
||||||
@ -63,7 +63,7 @@
|
|||||||
url,
|
url,
|
||||||
key,
|
key,
|
||||||
config: {
|
config: {
|
||||||
enabled: enabled,
|
enable: enable,
|
||||||
prefix_id: prefixId,
|
prefix_id: prefixId,
|
||||||
model_ids: modelIds
|
model_ids: modelIds
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@
|
|||||||
url = connection.url;
|
url = connection.url;
|
||||||
key = connection.key;
|
key = connection.key;
|
||||||
|
|
||||||
enabled = connection.config?.enabled ?? true;
|
enable = connection.config?.enable ?? true;
|
||||||
prefixId = connection.config?.prefix_id ?? '';
|
prefixId = connection.config?.prefix_id ?? '';
|
||||||
modelIds = connection.config?.model_ids ?? [];
|
modelIds = connection.config?.model_ids ?? [];
|
||||||
}
|
}
|
||||||
@ -179,8 +179,8 @@
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
<div class="flex flex-col flex-shrink-0 self-end">
|
<div class="flex flex-col flex-shrink-0 self-end">
|
||||||
<Tooltip content={enabled ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
|
<Tooltip content={enable ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
|
||||||
<Switch bind:state={enabled} />
|
<Switch bind:state={enable} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user