mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: no sort button on related columns.
This commit is contained in:
1 parent
ccfca7eeaf
commit
7b09d7561e
1 file changed
+8
-5
+8
-5
@@ -799,10 +799,11 @@
|
||||
</Tooltip>
|
||||
</Spreadsheet.Header.Cell>
|
||||
{:else}
|
||||
{@const structureColumn = $columns.find((col) => col.key === column.id)}
|
||||
<SheetOptions
|
||||
type="header"
|
||||
columnId={column.id}
|
||||
column={$columns.find((col) => col.key === column.id)}
|
||||
column={structureColumn}
|
||||
onSelect={(option, columnId) =>
|
||||
onSelectSheetOption(option, columnId, 'header')}>
|
||||
{#snippet children(toggle)}
|
||||
@@ -824,10 +825,12 @@
|
||||
<!-- array indicator -->
|
||||
{#if column.array}[]{/if}
|
||||
|
||||
<SortButton
|
||||
onSort={sort}
|
||||
column={column.id}
|
||||
state={sortState} />
|
||||
{#if !isRelationship(structureColumn)}
|
||||
<SortButton
|
||||
onSort={sort}
|
||||
column={column.id}
|
||||
state={sortState} />
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
</Spreadsheet.Header.Cell>
|
||||
{/snippet}
|
||||
|
||||
Reference in new issue
Block a user