1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00

Disabling the single attachment column toggle for now - until we add the new type.

This commit is contained in:
mike12345567 2024-03-22 15:52:46 +00:00
parent cc02d759d5
commit db19f2040f

View file

@ -710,21 +710,6 @@
thin
text="Allow multiple users"
/>
{:else if editableColumn.type === FieldType.ATTACHMENT}
<Toggle
value={editableColumn.subtype !== FieldTypeSubtypes.ATTACHMENT.SINGLE &&
// Checking config before the subtype was added
editableColumn.constraints?.length?.maximum !== 1}
on:change={e => {
if (!e.detail) {
editableColumn.subtype = FieldTypeSubtypes.ATTACHMENT.SINGLE
} else {
delete editableColumn.subtype
}
}}
thin
text="Allow multiple"
/>
{/if}
{#if editableColumn.type === AUTO_TYPE || editableColumn.autocolumn}
<Select