Don't try to save proposal when invalid

This commit is contained in:
2017-06-08 16:41:53 +02:00
parent 3571cc633e
commit 7f2f781a77
+1
View File
@@ -41,6 +41,7 @@ export default Component.extend({
save() { save() {
if (! this.get('isValid')) { if (! this.get('isValid')) {
alert('Invalid data. Please review and try again.'); alert('Invalid data. Please review and try again.');
return false;
} }
this.set('inProgress', true); this.set('inProgress', true);
let proposal = this.get('proposal'); let proposal = this.get('proposal');