mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
remove testing from watch process
This commit is contained in:
parent
6d337890d0
commit
1b52864f3e
@ -45,7 +45,7 @@ gulp.task('build', function() {
|
||||
bundle(false);
|
||||
});
|
||||
|
||||
gulp.task('serve', ['browser-sync', 'jest:watch', 'lint:watch', 'sass', 'sass:watch', 'copy'], function() {
|
||||
gulp.task('serve', ['browser-sync', 'lint:watch', 'sass', 'sass:watch', 'copy'], function() {
|
||||
bundle(true);
|
||||
});
|
||||
|
||||
|
@ -9,7 +9,6 @@ export const FormMixin = {
|
||||
getInitialState() {
|
||||
return {
|
||||
submitted: false,
|
||||
status: null,
|
||||
errors: []
|
||||
};
|
||||
},
|
||||
@ -23,12 +22,14 @@ export const FormMixin = {
|
||||
.then(() => { this.props.handleSuccess(); })
|
||||
.catch(this.handleError);
|
||||
},
|
||||
|
||||
clearErrors(){
|
||||
for (var ref in this.refs){
|
||||
this.refs[ref].clearAlerts();
|
||||
}
|
||||
this.setState({errors:[]});
|
||||
this.setState({errors: []});
|
||||
},
|
||||
|
||||
handleError(err){
|
||||
if (err.json) {
|
||||
for (var input in err.json.errors){
|
||||
@ -39,8 +40,8 @@ export const FormMixin = {
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
this.setState({errors: ['Something went wrong, please try again later"']});
|
||||
else {
|
||||
this.setState({errors: ['Something went wrong, please try again later']});
|
||||
}
|
||||
this.setState({submitted: false});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user