{ submitHandler(); dispatch('save'); }} >
{$i18n.t('Manage Valves')}
{#if selectedId}
{#if !loading} {#if valvesSpec} {#each Object.keys(valvesSpec.properties) as property, idx}
{valvesSpec.properties[property].title} {#if (valvesSpec?.required ?? []).includes(property)} *required {/if}
{#if (valves[property] ?? null) !== null}
{/if} {#if (valvesSpec.properties[property]?.description ?? null) !== null}
{valvesSpec.properties[property].description}
{/if}
{/each} {:else}
No valves
{/if} {:else} {/if}
{/if}