mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
QQQ-28 replacing QComponentType.FILE_UPLOAD with QFieldType.BLOB
This commit is contained in:
@ -63,6 +63,9 @@ class DynamicFormUtils
|
||||
case QFieldType.DATE:
|
||||
fieldType = field.type.toString();
|
||||
break;
|
||||
case QFieldType.BLOB:
|
||||
fieldType = "file";
|
||||
break;
|
||||
case QFieldType.TEXT:
|
||||
case QFieldType.HTML:
|
||||
case QFieldType.STRING:
|
||||
|
@ -234,7 +234,7 @@ function ProcessRun(): JSX.Element
|
||||
}
|
||||
</div>
|
||||
)))}
|
||||
{(step.formFields || doesStepHaveComponent(step, QComponentType.FILE_UPLOAD)) && (
|
||||
{(step.formFields) && (
|
||||
<QDynamicForm
|
||||
formData={formData}
|
||||
bulkEditMode={doesStepHaveComponent(activeStep, QComponentType.BULK_EDIT_FORM)}
|
||||
@ -392,18 +392,6 @@ function ProcessRun(): JSX.Element
|
||||
|
||||
logFormValidations("Post-disable thingie", formValidations);
|
||||
}
|
||||
else if (doesStepHaveComponent(activeStep, QComponentType.FILE_UPLOAD))
|
||||
{
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// if this step has an upload component, then set up the form for that. //
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
const {dynamicFormFields, formValidations} = DynamicFormUtils.getFormDataForUploadForm("fileUpload", "File");
|
||||
setFormFields(dynamicFormFields);
|
||||
setInitialValues(initialValues);
|
||||
|
||||
setValidationScheme(Yup.object().shape(formValidations));
|
||||
setValidationFunction(null);
|
||||
}
|
||||
else
|
||||
{
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user