Don't try to save proposal when invalid
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user