Skip to content

Commit

Permalink
fix(ui): correctly bind checked property to switch options in create …
Browse files Browse the repository at this point in the history
…table dialog
  • Loading branch information
oktal committed Sep 9, 2024
1 parent 4e52725 commit 3b3e8a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/dialog/CsvOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Specifies whether there is a CSV header (i.e. the first line consists of is column names).
</span>
</Label>
<Switch id="has-header" checked={hasHeader} aria-label="Has header" />
<Switch id="has-header" bind:checked={hasHeader} aria-label="Has header" />
</div>

<div class="flex items-center justify-between space-x-2">
Expand All @@ -40,6 +40,6 @@
Specifies whether values can be multiline
</span>
</Label>
<Switch id="multilines" checked={multiLines} aria-label="Multi lines in values" />
<Switch id="multilines" bind:checked={multiLines} aria-label="Multi lines in values" />
</div>
</div>
6 changes: 3 additions & 3 deletions src/lib/components/dialog/ParquetOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
number of rows decoded.
</span>
</Label>
<Switch id="enable-page-index" checked={enablePageIndex} aria-label="Enable Page Index" />
<Switch id="enable-page-index" bind:checked={enablePageIndex} aria-label="Enable Page Index" />
</div>

<div class="flex items-center justify-between space-x-2">
Expand All @@ -31,7 +31,7 @@
(min/max values) stored in the parquet file
</span>
</Label>
<Switch id="pruning" checked={pruning} aria-label="Pruning" />
<Switch id="pruning" bind:checked={pruning} aria-label="Pruning" />
</div>

<div class="flex items-center justify-between space-x-2">
Expand All @@ -42,6 +42,6 @@
rows decoded. This optimization is sometimes called "late materialization".
</span>
</Label>
<Switch id="pushdown-filters" checked={pushdownFilters} aria-label="Pushdown filters" />
<Switch id="pushdown-filters" bind:checked={pushdownFilters} aria-label="Pushdown filters" />
</div>
</div>

0 comments on commit 3b3e8a6

Please sign in to comment.