mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2095 from appwrite/fix-broken-relationship-modal
This commit is contained in:
+7
-3
@@ -23,7 +23,11 @@
|
||||
selectedRelationship = null;
|
||||
}
|
||||
|
||||
$: tableColumns = [{ id: '$id', width: 200 }, ...args.map((id) => ({ id }))];
|
||||
$: tableColumns = [
|
||||
// take full width if no display names set
|
||||
{ id: '$id', width: args.length ? 200 : undefined },
|
||||
...args.map((id) => ({ id }))
|
||||
];
|
||||
</script>
|
||||
|
||||
<Modal bind:show title={selectedRelationship?.key} hideFooter>
|
||||
@@ -33,7 +37,7 @@
|
||||
<Table.Root let:root columns={tableColumns}>
|
||||
<svelte:fragment slot="header" let:root>
|
||||
<Table.Header.Cell column="$id" {root}>Document ID</Table.Header.Cell>
|
||||
{#if args?.length}
|
||||
{#if args.length}
|
||||
{#each args as arg}
|
||||
<Table.Header.Cell column={arg} {root}>{arg}</Table.Header.Cell>
|
||||
{/each}
|
||||
@@ -47,7 +51,7 @@
|
||||
<Table.Cell column="$id" {root}>
|
||||
<Id value={doc.$id}>{doc.$id}</Id>
|
||||
</Table.Cell>
|
||||
{#if args?.length}
|
||||
{#if args.length}
|
||||
{#each args as arg}
|
||||
<Table.Cell column={arg} {root}>{doc[arg]}</Table.Cell>
|
||||
{/each}
|
||||
|
||||
+3
-1
@@ -73,7 +73,9 @@
|
||||
(names?.length && !last(names))
|
||||
);
|
||||
|
||||
const hasExhaustedOptions = $derived(getValidAttributes().length === names?.length);
|
||||
const hasExhaustedOptions = $derived(
|
||||
getValidAttributes().length === names.filter(Boolean).length
|
||||
);
|
||||
</script>
|
||||
|
||||
<Form onSubmit={updateDisplayName}>
|
||||
|
||||
Reference in New Issue
Block a user