diff --git a/apps/desktop/src/app/app.component.ts b/apps/desktop/src/app/app.component.ts index 39a5c185fde..f5d3ec09bb7 100644 --- a/apps/desktop/src/app/app.component.ts +++ b/apps/desktop/src/app/app.component.ts @@ -252,7 +252,7 @@ export class AppComponent implements OnInit, OnDestroy { break; } case "deleteAccount": - this.modalService.open(DeleteAccountComponent, { replaceTopModal: true }); + DeleteAccountComponent.open(this.dialogService); break; case "openPasswordHistory": await this.openModal( diff --git a/apps/desktop/src/app/app.module.ts b/apps/desktop/src/app/app.module.ts index 3436e98c998..d57256aac8c 100644 --- a/apps/desktop/src/app/app.module.ts +++ b/apps/desktop/src/app/app.module.ts @@ -3,11 +3,11 @@ import "zone.js"; // Register the locales for the application import "../platform/app/locales"; -import { DialogModule } from "@angular/cdk/dialog"; import { NgModule } from "@angular/core"; import { ColorPasswordCountPipe } from "@bitwarden/angular/pipes/color-password-count.pipe"; import { ColorPasswordPipe } from "@bitwarden/angular/pipes/color-password.pipe"; +import { DialogModule } from "@bitwarden/components"; import { AccessibilityCookieComponent } from "../auth/accessibility-cookie.component"; import { SetPinComponent } from "../auth/components/set-pin.component"; @@ -55,7 +55,15 @@ import { AddEditComponent as SendAddEditComponent } from "./tools/send/add-edit. import { SendComponent } from "./tools/send/send.component"; @NgModule({ - imports: [SharedModule, DialogModule, AppRoutingModule, VaultFilterModule, LoginModule], + imports: [ + SharedModule, + AppRoutingModule, + VaultFilterModule, + LoginModule, + DialogModule, + DeleteAccountComponent, + UserVerificationComponent, + ], declarations: [ AccessibilityCookieComponent, AccountSwitcherComponent, @@ -67,7 +75,6 @@ import { SendComponent } from "./tools/send/send.component"; CollectionsComponent, ColorPasswordPipe, ColorPasswordCountPipe, - DeleteAccountComponent, EnvironmentComponent, ExportComponent, FolderAddEditComponent, @@ -92,7 +99,6 @@ import { SendComponent } from "./tools/send/send.component"; TwoFactorComponent, TwoFactorOptionsComponent, UpdateTempPasswordComponent, - UserVerificationComponent, VaultComponent, VaultTimeoutInputComponent, ViewComponent, diff --git a/apps/desktop/src/app/components/user-verification.component.ts b/apps/desktop/src/app/components/user-verification.component.ts index 87b514c416e..0a0e075e098 100644 --- a/apps/desktop/src/app/components/user-verification.component.ts +++ b/apps/desktop/src/app/components/user-verification.component.ts @@ -1,11 +1,16 @@ import { animate, style, transition, trigger } from "@angular/animations"; +import { CommonModule } from "@angular/common"; import { Component } from "@angular/core"; -import { NG_VALUE_ACCESSOR } from "@angular/forms"; +import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from "@angular/forms"; import { UserVerificationComponent as BaseComponent } from "@bitwarden/angular/auth/components/user-verification.component"; +import { JslibModule } from "@bitwarden/angular/jslib.module"; +import { FormFieldModule } from "@bitwarden/components"; @Component({ selector: "app-user-verification", + standalone: true, + imports: [CommonModule, JslibModule, ReactiveFormsModule, FormFieldModule, FormsModule], templateUrl: "user-verification.component.html", providers: [ { diff --git a/apps/desktop/src/auth/delete-account.component.html b/apps/desktop/src/auth/delete-account.component.html index 14e96165c48..8639b0f5be1 100644 --- a/apps/desktop/src/auth/delete-account.component.html +++ b/apps/desktop/src/auth/delete-account.component.html @@ -1,43 +1,30 @@ -