From da534434bb8aca96920ce76074c09f9a0f959e93 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 11 Sep 2025 12:31:47 -0400 Subject: [PATCH] replace click event with bitDialogClose --- .../first-report-prompt-dialog.component.html | 2 +- .../first-report-prompt-dialog.component.ts | 17 ++--------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/first-report-prompt-dialog.component.html b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/first-report-prompt-dialog.component.html index a8cfac3da81..b90f7406ab6 100644 --- a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/first-report-prompt-dialog.component.html +++ b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/first-report-prompt-dialog.component.html @@ -42,7 +42,7 @@ - diff --git a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/first-report-prompt-dialog.component.ts b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/first-report-prompt-dialog.component.ts index c5ff3651659..5d8cfcc28e2 100644 --- a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/first-report-prompt-dialog.component.ts +++ b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/first-report-prompt-dialog.component.ts @@ -1,12 +1,6 @@ -import { Component, inject } from "@angular/core"; +import { Component } from "@angular/core"; -import { - ButtonModule, - DialogModule, - DialogRef, - DialogService, - TypographyModule, -} from "@bitwarden/components"; +import { ButtonModule, DialogModule, DialogService, TypographyModule } from "@bitwarden/components"; import { I18nPipe } from "@bitwarden/ui-common"; @Component({ @@ -14,14 +8,7 @@ import { I18nPipe } from "@bitwarden/ui-common"; imports: [ButtonModule, DialogModule, TypographyModule, I18nPipe], }) export class FirstReportPromptDialogComponent { - private dialogRef = inject(DialogRef); - static open(dialogService: DialogService) { return dialogService.open(FirstReportPromptDialogComponent); } - - runReport(): void { - // Simply close the dialog with 'true' to indicate user wants to run report - this.dialogRef.close(true); - } }