mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-11 10:10:25 +01:00
f999e2cea9
* update desktop and browser swal references to use CL * rename bit-dialog-close * share fingerprint dialog between desktop and browser * apply code review * format fingerprint in template * apply code review * fix button color * fix button types * update var names * close awaitDesktop dialog on success AND error * add DialogService to NativeMessageHandlerService deps * wrap browser message dialogs in ngZone.run * wrap native messaging handler in ngzone.run * apply code review * fix async ngzone --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
25 lines
813 B
TypeScript
25 lines
813 B
TypeScript
import { DIALOG_DATA } from "@angular/cdk/dialog";
|
|
import { Component, Inject } from "@angular/core";
|
|
|
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
|
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
|
|
|
export type VerifyNativeMessagingDialogData = {
|
|
applicationName: string;
|
|
};
|
|
|
|
@Component({
|
|
templateUrl: "verify-native-messaging-dialog.component.html",
|
|
standalone: true,
|
|
imports: [JslibModule, ButtonModule, DialogModule],
|
|
})
|
|
export class VerifyNativeMessagingDialogComponent {
|
|
constructor(@Inject(DIALOG_DATA) protected data: VerifyNativeMessagingDialogData) {}
|
|
|
|
static open(dialogService: DialogService, data: VerifyNativeMessagingDialogData) {
|
|
return dialogService.open<boolean>(VerifyNativeMessagingDialogComponent, {
|
|
data,
|
|
});
|
|
}
|
|
}
|