fixing 1:N UI order

This commit is contained in:
Martin McKeaveney 2021-02-25 13:34:12 +00:00
parent b4996ccb4d
commit 595dc55f39
2 changed files with 11 additions and 10 deletions

View File

@ -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}

View File

@ -3,6 +3,7 @@ FROM node:12-alpine
WORKDIR /app
ENV CLOUD=1
ENV PORT=4001
ENV COUCH_DB_URL=https://couchdb.budi.live:5984
ENV BUDIBASE_ENVIRONMENT=PRODUCTION