From 00bb814fbe10f4a584c32d9524e03d30bd6e155f Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Wed, 27 Dec 2023 10:48:06 -0800 Subject: [PATCH] [PM-2414] Angular 16 Upgrade - SetPinComponent (#7214) * migrate to DialogService * use static method * add reactive form dependencies * begin migrating to reactive forms * migrate template inputs to use CL * update set-pin.component.ts file to work with reactive forms * migrate desktop template and class file to Dialog and ReactiveForms * update settings page * remove old properties * update settings form upon dialog close * refactor ngOnInit() * remove duplicate validator (already have a validator in class file) --- .../popup/components/set-pin.component.html | 93 ++++++------------ .../popup/components/set-pin.component.ts | 28 +++++- apps/browser/src/popup/app.module.ts | 2 - .../src/popup/settings/settings.component.ts | 7 +- .../src/app/accounts/settings.component.ts | 8 +- apps/desktop/src/app/app.module.ts | 2 - .../auth/components/set-pin.component.html | 94 ++++++------------- .../src/auth/components/set-pin.component.ts | 29 +++++- .../src/auth/components/set-pin.component.ts | 44 +++++---- 9 files changed, 146 insertions(+), 161 deletions(-) diff --git a/apps/browser/src/auth/popup/components/set-pin.component.html b/apps/browser/src/auth/popup/components/set-pin.component.html index 54a3fab10d..aff87b5371 100644 --- a/apps/browser/src/auth/popup/components/set-pin.component.html +++ b/apps/browser/src/auth/popup/components/set-pin.component.html @@ -1,64 +1,29 @@ -