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

[EC-598] feat: add basic cancel button

This commit is contained in:
Andreas Coroiu
2022-12-16 09:33:38 +01:00
parent f6b58d812d
commit 1d8dfaaf8d
2 changed files with 7 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
<div class="auth-wrapper">
A site is asking for authentication
<button type="button" class="btn btn-outline-secondary" (click)="verify()">Authenticate</button>
<button type="button" class="btn btn-outline-secondary" (click)="cancel()">Cancel</button>
</div>

View File

@@ -27,8 +27,13 @@ export class Fido2Component {
window.close();
}
cancel() {
this.unload();
window.close();
}
@HostListener("window:unload")
unloadHandler() {
unload() {
const data = this.data;
BrowserFido2UserInterfaceService.sendMessage({
requestId: data.requestId,