Replace relationshipType for subtype

This commit is contained in:
Adria Navarro 2023-10-04 13:28:33 +02:00
parent fe15b4d1e3
commit d22fac9bf9
1 changed files with 6 additions and 8 deletions

View File

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