1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-18 11:05:41 +01:00

fix submit to return boolean

This commit is contained in:
Kyle Spearrin 2018-04-05 23:51:58 -04:00
parent 211e8b7eca
commit 741e142049

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() {