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:
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
Block a user