Skip to content

Commit

Permalink
Propagate disabled flag to ParameterBasePath (#1448)
Browse files Browse the repository at this point in the history
* Propagate disabled flag to ParameterBasePath

* Hide browse button when disabled
  • Loading branch information
mattdailis authored Sep 4, 2024
1 parent dbccc45 commit 15e1e94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/parameters/ParameterBase.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
/>
{:else if formParameter.schema.type === 'path'}
<ParameterBasePath
{disabled}
{hideRightAdornments}
{labelColumnWidth}
{level}
Expand Down
4 changes: 3 additions & 1 deletion src/components/parameters/ParameterBasePath.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
on:reset={() => dispatch('reset', formParameter)}
/>
</Input>
<input type="file" on:change={onChange} use:useActions={use} />
{#if !disabled}
<input type="file" on:change={onChange} use:useActions={use} />
{/if}
</div>
</div>

Expand Down

0 comments on commit 15e1e94

Please sign in to comment.