Browse Source
Merge pull request #1191 from Budibase/release-0.8-fixes
fixing 1:N UI order
pull/1193/head
Martin McKeaveney
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
10 deletions
-
packages/builder/src/components/common/LinkedRowSelector.svelte
|
|
|
@ -43,6 +43,16 @@ |
|
|
|
</Label> |
|
|
|
{:else} |
|
|
|
{#if schema.relationshipType === 'one-to-many'} |
|
|
|
<Multiselect |
|
|
|
secondary |
|
|
|
bind:value={linkedIds} |
|
|
|
{label} |
|
|
|
placeholder="Choose some options"> |
|
|
|
{#each rows as row} |
|
|
|
<option value={row._id}>{getPrettyName(row)}</option> |
|
|
|
{/each} |
|
|
|
</Multiselect> |
|
|
|
{:else} |
|
|
|
<Select |
|
|
|
thin |
|
|
|
secondary |
|
|
|
@ -56,15 +66,5 @@ |
|
|
|
</option> |
|
|
|
{/each} |
|
|
|
</Select> |
|
|
|
{:else} |
|
|
|
<Multiselect |
|
|
|
secondary |
|
|
|
bind:value={linkedIds} |
|
|
|
{label} |
|
|
|
placeholder="Choose some options"> |
|
|
|
{#each rows as row} |
|
|
|
<option value={row._id}>{getPrettyName(row)}</option> |
|
|
|
{/each} |
|
|
|
</Multiselect> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
|