mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +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()) {
|
if (await super.submit()) {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cancel() {
|
cancel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user