mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
* 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)
34 lines
897 B
TypeScript
34 lines
897 B
TypeScript
import { CommonModule } from "@angular/common";
|
|
import { Component } from "@angular/core";
|
|
import { ReactiveFormsModule } from "@angular/forms";
|
|
|
|
import { SetPinComponent as BaseSetPinComponent } from "@bitwarden/angular/auth/components/set-pin.component";
|
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
|
import {
|
|
AsyncActionsModule,
|
|
ButtonModule,
|
|
DialogModule,
|
|
DialogService,
|
|
FormFieldModule,
|
|
IconButtonModule,
|
|
} from "@bitwarden/components";
|
|
@Component({
|
|
standalone: true,
|
|
templateUrl: "set-pin.component.html",
|
|
imports: [
|
|
DialogModule,
|
|
CommonModule,
|
|
JslibModule,
|
|
ButtonModule,
|
|
IconButtonModule,
|
|
ReactiveFormsModule,
|
|
AsyncActionsModule,
|
|
FormFieldModule,
|
|
],
|
|
})
|
|
export class SetPinComponent extends BaseSetPinComponent {
|
|
static open(dialogService: DialogService) {
|
|
return dialogService.open<boolean>(SetPinComponent);
|
|
}
|
|
}
|