enh: valve field desc support

This commit is contained in:
Timothy J. Baek 2024-06-23 17:34:25 -07:00
parent 7cd4a3cd1a
commit 5d7de927e5

View File

@ -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}