mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
fix submit to return boolean
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user