initial setup for one to many

This commit is contained in:
Keviin Åberg Kultalahti 2021-02-08 16:46:54 +01:00
parent 5ab29ab73e
commit ce864e118f
2 changed files with 5 additions and 0 deletions

View File

@ -149,6 +149,10 @@
label="Max Value"
bind:value={field.constraints.numericality.lessThanOrEqualTo} />
{:else if field.type === 'link'}
<Toggle
bind:checked={field.constraints.oneToMany}
thin
text="One to many?" />
<Select label="Table" thin secondary bind:value={field.tableId}>
<option value="">Choose an option</option>
{#each tableOptions as table}

View File

@ -78,6 +78,7 @@ export const FIELDS = {
constraints: {
type: "array",
presence: false,
oneToMany: false
},
},
}