1
0
Fork 0
mirror of synced 2024-08-07 22:28:15 +12:00

Replace relationshipType for subtype

This commit is contained in:
Adria Navarro 2023-10-04 13:28:33 +02:00
parent fe15b4d1e3
commit d22fac9bf9

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