Multiple attachments flags
This commit is contained in:
parent
fa84b3fbc2
commit
b5ab4b90a0
|
@ -170,6 +170,10 @@
|
||||||
relationshipPart1 = part1
|
relationshipPart1 = part1
|
||||||
relationshipPart2 = part2
|
relationshipPart2 = part2
|
||||||
}
|
}
|
||||||
|
} else if (editableColumn.type === FieldType.ATTACHMENT) {
|
||||||
|
editableColumn.constraints ??= { length: {} }
|
||||||
|
editableColumn.constraints.length ??= {}
|
||||||
|
editableColumn.constraints.length.maximum = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -710,6 +714,21 @@
|
||||||
thin
|
thin
|
||||||
text="Allow multiple users"
|
text="Allow multiple users"
|
||||||
/>
|
/>
|
||||||
|
{:else if editableColumn.type === FieldType.ATTACHMENT}
|
||||||
|
<Toggle
|
||||||
|
value={editableColumn.constraints?.length?.maximum !== 1}
|
||||||
|
on:change={e => {
|
||||||
|
if (!e.detail) {
|
||||||
|
editableColumn.constraints ??= { length: {} }
|
||||||
|
editableColumn.constraints.length ??= {}
|
||||||
|
editableColumn.constraints.length.maximum = 1
|
||||||
|
} else {
|
||||||
|
delete editableColumn.constraints?.length?.maximum
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
thin
|
||||||
|
text="Multiple attachments"
|
||||||
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if editableColumn.type === AUTO_TYPE || editableColumn.autocolumn}
|
{#if editableColumn.type === AUTO_TYPE || editableColumn.autocolumn}
|
||||||
<Select
|
<Select
|
||||||
|
|
Loading…
Reference in New Issue