Replace relationshipType for subtype
This commit is contained in:
parent
fe15b4d1e3
commit
d22fac9bf9
|
@ -659,18 +659,16 @@
|
||||||
<Button primary text on:click={openJsonSchemaEditor}
|
<Button primary text on:click={openJsonSchemaEditor}
|
||||||
>Open schema editor</Button
|
>Open schema editor</Button
|
||||||
>
|
>
|
||||||
{:else if editableColumn.type === USER_REFRENCE_TYPE}
|
<Toggle
|
||||||
<!-- Disabled temporally -->
|
value={editableColumn.subtype === FieldSubtype.USERS}
|
||||||
<!-- <Toggle
|
|
||||||
value={editableColumn.relationshipType === RelationshipType.MANY_TO_MANY}
|
|
||||||
on:change={e =>
|
on:change={e =>
|
||||||
(editableColumn.relationshipType = e.detail
|
(editableColumn.subtype = e.detail
|
||||||
? RelationshipType.MANY_TO_MANY
|
? FieldSubtype.USERS
|
||||||
: RelationshipType.ONE_TO_MANY)}
|
: FieldSubtype.USER)}
|
||||||
disabled={!isCreating}
|
disabled={!isCreating}
|
||||||
thin
|
thin
|
||||||
text="Allow multiple users"
|
text="Allow multiple users"
|
||||||
/> -->
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if editableColumn.type === AUTO_TYPE || editableColumn.autocolumn}
|
{#if editableColumn.type === AUTO_TYPE || editableColumn.autocolumn}
|
||||||
<Select
|
<Select
|
||||||
|
|
Loading…
Reference in New Issue