mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 11:32:38 +02:00
fix: use the multichoices for ttl in remote data form
This commit is contained in:
parent
90bbc72320
commit
862f19ee43
1 changed files with 9 additions and 9 deletions
|
@ -130,15 +130,7 @@ export class MutatingForm extends Form {
|
|||
}
|
||||
for (const [key, defaults] of Object.entries(SCHEMA)) {
|
||||
const properties = Object.assign({}, defaults)
|
||||
if (properties.type === Boolean) {
|
||||
if (properties.nullable) properties.handler = 'NullableChoices'
|
||||
else properties.handler = 'Switch'
|
||||
} else if (properties.type === 'Text') {
|
||||
properties.handler = 'Textarea'
|
||||
} else if (properties.type === Number) {
|
||||
if (properties.step) properties.handler = 'Range'
|
||||
else properties.handler = 'IntInput'
|
||||
} else if (properties.type === Array) {
|
||||
if (properties.type === Array) {
|
||||
properties.handler = 'CheckBoxes'
|
||||
} else if (properties.choices) {
|
||||
const text_length = properties.choices.reduce(
|
||||
|
@ -153,6 +145,14 @@ export class MutatingForm extends Form {
|
|||
properties.handler = 'Select'
|
||||
properties.selectOptions = properties.choices
|
||||
}
|
||||
} else if (properties.type === Boolean) {
|
||||
if (properties.nullable) properties.handler = 'NullableChoices'
|
||||
else properties.handler = 'Switch'
|
||||
} else if (properties.type === 'Text') {
|
||||
properties.handler = 'Textarea'
|
||||
} else if (properties.type === Number) {
|
||||
if (properties.step) properties.handler = 'Range'
|
||||
else properties.handler = 'IntInput'
|
||||
} else {
|
||||
switch (key) {
|
||||
case 'color':
|
||||
|
|
Loading…
Reference in a new issue