feat(react): add FileUploadField and FileUploadForm components [EE-2336] (#6350)

This commit is contained in:
Marcelo Rydel
2022-01-05 10:39:34 -03:00
committed by GitHub
parent 07e7fbd270
commit 8dbb802fb1
14 changed files with 235 additions and 15 deletions

View File

@@ -213,6 +213,11 @@ export default class CreateEdgeStackViewController {
}
formIsInvalid() {
return this.form.$invalid || !this.formValues.Groups.length || (['template', 'editor'].includes(this.state.Method) && !this.formValues.StackFileContent);
return (
this.form.$invalid ||
!this.formValues.Groups.length ||
(['template', 'editor'].includes(this.state.Method) && !this.formValues.StackFileContent) ||
('upload' === this.state.Method && !this.formValues.StackFile)
);
}
}