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:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user