1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

on route if confirmed

This commit is contained in:
Kyle Spearrin
2018-04-11 16:27:20 -04:00
parent 72177644ad
commit d8ca3026cb
3 changed files with 6 additions and 5 deletions

View File

@@ -102,7 +102,8 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
}
async delete() {
await super.delete();
this.router.navigate(['/tabs/vault']);
if (await super.delete()) {
this.router.navigate(['/tabs/vault']);
}
}
}