mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 05:18:15 +00:00
enh: valve field desc support
This commit is contained in:
parent
7cd4a3cd1a
commit
5d7de927e5
@ -203,7 +203,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if (valves[property] ?? null) !== null}
|
{#if (valves[property] ?? null) !== null}
|
||||||
<div class="flex mt-0.5 space-x-2">
|
<div class="flex mt-0.5 mb-1 space-x-2">
|
||||||
<div class=" flex-1">
|
<div class=" flex-1">
|
||||||
<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"
|
||||||
@ -216,6 +216,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if (valvesSpec.properties[property]?.description ?? null) !== null}
|
||||||
|
<div class="text-xs text-gray-500">
|
||||||
|
{valvesSpec.properties[property].description}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
{:else}
|
{:else}
|
||||||
|
Loading…
Reference in New Issue
Block a user