Alert for error invoking functions

This commit is contained in:
Richard Ramos 2018-05-11 10:13:42 -04:00 committed by Pascal Precht
parent a247c43080
commit cab6b889b5
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,11 @@ class {{capitalize name}}Form{{@index}} extends React.Component {
render(){
return <div className="formSection">
<h3>{{name}}</h3>
{
this.state.error != null ?
<Alert bsStyle="danger">{this.state.error}</Alert>
: ''
}
<form>
{{#if inputs.length}}
{{#each inputs}}