fix submit to return boolean

This commit is contained in:
Kyle Spearrin 2018-04-05 23:51:58 -04:00
parent 211e8b7eca
commit 741e142049
1 changed files with 4 additions and 1 deletions

View File

@ -45,10 +45,13 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
});
}
async submit() {
async submit(): Promise<boolean> {
if (await super.submit()) {
this.location.back();
return true;
}
return false;
}
cancel() {