mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +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);
|
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);
|
bundle(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ export const FormMixin = {
|
|||||||
getInitialState() {
|
getInitialState() {
|
||||||
return {
|
return {
|
||||||
submitted: false,
|
submitted: false,
|
||||||
status: null,
|
|
||||||
errors: []
|
errors: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -23,12 +22,14 @@ export const FormMixin = {
|
|||||||
.then(() => { this.props.handleSuccess(); })
|
.then(() => { this.props.handleSuccess(); })
|
||||||
.catch(this.handleError);
|
.catch(this.handleError);
|
||||||
},
|
},
|
||||||
|
|
||||||
clearErrors(){
|
clearErrors(){
|
||||||
for (var ref in this.refs){
|
for (var ref in this.refs){
|
||||||
this.refs[ref].clearAlerts();
|
this.refs[ref].clearAlerts();
|
||||||
}
|
}
|
||||||
this.setState({errors: []});
|
this.setState({errors: []});
|
||||||
},
|
},
|
||||||
|
|
||||||
handleError(err){
|
handleError(err){
|
||||||
if (err.json) {
|
if (err.json) {
|
||||||
for (var input in err.json.errors){
|
for (var input in err.json.errors){
|
||||||
@ -40,7 +41,7 @@ export const FormMixin = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.setState({errors: ['Something went wrong, please try again later"']});
|
this.setState({errors: ['Something went wrong, please try again later']});
|
||||||
}
|
}
|
||||||
this.setState({submitted: false});
|
this.setState({submitted: false});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user