Show form errors

This commit is contained in:
Manuel Bouza
2019-02-13 14:22:50 +01:00
parent eb154be04a
commit 4d77ddb2aa
6 changed files with 48 additions and 12 deletions

View File

@@ -147,6 +147,7 @@ class Bubble extends Component {
.createActivity(this.changesetWithDefaults)
.then(() => {
this.close()
this.changeset = {}
this.formErrors = {}
})
.catch(this.handleSubmitError)
@@ -173,6 +174,7 @@ class Bubble extends Component {
<Form
projects={this.projects}
changeset={this.changesetWithDefaults}
errors={this.formErrors}
isLoading={this.isLoading}
onChange={this.handleChange}
onSubmit={this.handleSubmit}