diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte index df9dd7df1..6656695c5 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte @@ -21,9 +21,11 @@ -{#if isOneWay} - - + (isOneWay = true)} disabled={isOneWay}>One + (isOneWay = false)} disabled={!isOneWay}>Two + + ({ value: n.$id, label: n.name }))} /> +{#if data?.related} + {@const selectedCol = collections.find((n) => n.$id === data.related)} -{:else} - 2 + {#if !isOneWay} + + + + + + + Allowed characters: alphanumeric, hyphen, non-leading underscore, period + + + + {/if} + + + + + {$collection.name} -> {selectedCol.name} + + + {$collection.name} has {data.relation === 'one' ? 'one' : 'many'} + {selectedCol.name} + {/if}
+ {$collection.name} has {data.relation === 'one' ? 'one' : 'many'} + {selectedCol.name} +