1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 07:43:16 +00:00

Use api action directive for confirm action (#1153)

This commit is contained in:
Matt Gibson
2021-09-13 08:46:16 -04:00
committed by GitHub
parent 8180aaa4cc
commit c82d1b3c50
3 changed files with 5 additions and 5 deletions

View File

@@ -253,11 +253,10 @@ export abstract class BasePeopleComponent<UserType extends ProviderUserUserDetai
comp.publicKey = publicKey;
comp.onConfirmedUser.subscribe(async () => {
try {
await confirmUser(publicKey);
comp.formPromise = confirmUser(publicKey);
await comp.formPromise;
modal.close();
} catch (e) {
this.logService.error(`Handled exception: ${e}`);
}
} catch { }
});
});
return;