Don't try to save proposal when invalid
This commit is contained in:
1 parent
3571cc633e
commit
7f2f781a77
1 file changed
+1
@@ -41,6 +41,7 @@ export default Component.extend({
|
||||
save() {
|
||||
if (! this.get('isValid')) {
|
||||
alert('Invalid data. Please review and try again.');
|
||||
return false;
|
||||
}
|
||||
this.set('inProgress', true);
|
||||
let proposal = this.get('proposal');
|
||||
|
||||
Reference in new issue
Block a user