mirror of
https://github.com/open-webui/open-webui
synced 2025-02-06 13:10:16 +00:00
fix
This commit is contained in:
parent
e4c85921b2
commit
cf317f8fdf
@ -480,18 +480,18 @@
|
|||||||
<!-- {valves[property]} -->
|
<!-- {valves[property]} -->
|
||||||
<div class="flex mt-0.5 mb-1.5 space-x-2">
|
<div class="flex mt-0.5 mb-1.5 space-x-2">
|
||||||
<div class=" flex-1">
|
<div class=" flex-1">
|
||||||
{#if valvesSpec.properties[property]?.enum ?? null}
|
{#if valves_spec.properties[property]?.enum ?? null}
|
||||||
<select
|
<select
|
||||||
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
|
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
|
||||||
bind:value={valves[property]}
|
bind:value={valves[property]}
|
||||||
>
|
>
|
||||||
{#each valvesSpec.properties[property].enum as option}
|
{#each valves_spec.properties[property].enum as option}
|
||||||
<option value={option} selected={option === valves[property]}>
|
<option value={option} selected={option === valves[property]}>
|
||||||
{option}
|
{option}
|
||||||
</option>
|
</option>
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
{:else if (valvesSpec.properties[property]?.type ?? null) === 'boolean'}
|
{:else if (valves_spec.properties[property]?.type ?? null) === 'boolean'}
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="text-xs text-gray-500">
|
<div class="text-xs text-gray-500">
|
||||||
{valves[property] ? 'Enabled' : 'Disabled'}
|
{valves[property] ? 'Enabled' : 'Disabled'}
|
||||||
@ -505,7 +505,7 @@
|
|||||||
<input
|
<input
|
||||||
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
|
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder={valvesSpec.properties[property].title}
|
placeholder={valves_spec.properties[property].title}
|
||||||
bind:value={valves[property]}
|
bind:value={valves[property]}
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
required
|
required
|
||||||
|
Loading…
Reference in New Issue
Block a user