fix submit to return boolean
This commit is contained in:
parent
211e8b7eca
commit
741e142049
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue