Feedback updates. Backed out parsing and simply renamed the field config property
This commit is contained in:
parent
90be29452b
commit
8e78b075fd
|
@ -56,7 +56,7 @@ const componentMap = {
|
||||||
"field/link": FormFieldSelect,
|
"field/link": FormFieldSelect,
|
||||||
"field/array": FormFieldSelect,
|
"field/array": FormFieldSelect,
|
||||||
"field/json": FormFieldSelect,
|
"field/json": FormFieldSelect,
|
||||||
"field/barcode/qr": FormFieldSelect,
|
"field/barcodeqr": FormFieldSelect,
|
||||||
// Some validation types are the same as others, so not all types are
|
// Some validation types are the same as others, so not all types are
|
||||||
// explicitly listed here. e.g. options uses string validation
|
// explicitly listed here. e.g. options uses string validation
|
||||||
"validation/string": ValidationEditor,
|
"validation/string": ValidationEditor,
|
||||||
|
|
|
@ -32,11 +32,7 @@
|
||||||
types = [type]
|
types = [type]
|
||||||
}
|
}
|
||||||
|
|
||||||
types = types.map(type => {
|
types = types.map(type => type.slice(type.indexOf("/") + 1))
|
||||||
let fieldTypeRaw = type.slice(type.indexOf("/") + 1)
|
|
||||||
let fieldTypeParsed = fieldTypeRaw.replace("/", "")
|
|
||||||
return fieldTypeParsed
|
|
||||||
})
|
|
||||||
|
|
||||||
entries = entries.filter(entry => types.includes(entry[1].type))
|
entries = entries.filter(entry => types.includes(entry[1].type))
|
||||||
|
|
||||||
|
|
|
@ -3241,7 +3241,7 @@
|
||||||
},
|
},
|
||||||
"settings": [
|
"settings": [
|
||||||
{
|
{
|
||||||
"type": "field/barcode/qr",
|
"type": "field/barcodeqr",
|
||||||
"label": "Field",
|
"label": "Field",
|
||||||
"key": "field",
|
"key": "field",
|
||||||
"required": true
|
"required": true
|
||||||
|
|
Loading…
Reference in New Issue