mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-27 22:11:38 +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;
|
return confirmed;
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete() {
|
async delete(): Promise<boolean> {
|
||||||
if (await super.delete()) {
|
const confirmed = await super.delete();
|
||||||
|
if (confirmed) {
|
||||||
this.router.navigate(['/tabs/vault']);
|
this.router.navigate(['/tabs/vault']);
|
||||||
}
|
}
|
||||||
|
return confirmed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user