mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-13 19:51:37 +01:00
return Promise<boolean> from delete
This commit is contained in:
parent
0cf485187d
commit
f01b9e9632
@ -101,9 +101,11 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
||||
return confirmed;
|
||||
}
|
||||
|
||||
async delete() {
|
||||
if (await super.delete()) {
|
||||
async delete(): Promise<boolean> {
|
||||
const confirmed = await super.delete();
|
||||
if (confirmed) {
|
||||
this.router.navigate(['/tabs/vault']);
|
||||
}
|
||||
return confirmed;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user