1
0
Fork 0
mirror of synced 2024-09-10 06:26:02 +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} <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