{ submitHandler(); dispatch('save'); }} >
{$i18n.t('Manage Valves')}
{$i18n.t('Tools')}
{$i18n.t('Functions')}
{ await tick(); }} > {#if tab === 'tools'}
{$i18n.t('Select a tool')}
{#each $tools as tool, toolIdx}
{tool.name}
{/each} {:else if tab === 'functions'}
{$i18n.t('Select a function')}
{#each $functions as func, funcIdx}
{func.name}
{/each} {/if}
{#if selectedId}
{#if !loading}
{:else}
{/if}
{/if}
{$i18n.t('Save')}