mirror of
https://github.com/bitwarden/browser
synced 2026-02-26 01:23:24 +00:00
Auth - Prefer signal & change detection (#16950)
This commit is contained in:
@@ -26,6 +26,8 @@ import { KeyService } from "@bitwarden/key-management";
|
||||
})
|
||||
export class UserVerificationComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
||||
private _invalidSecret = false;
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||
@Input()
|
||||
get invalidSecret() {
|
||||
return this._invalidSecret;
|
||||
@@ -43,6 +45,8 @@ export class UserVerificationComponent implements ControlValueAccessor, OnInit,
|
||||
}
|
||||
this.secret.updateValueAndValidity({ emitEvent: false });
|
||||
}
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||
@Output() invalidSecretChange = new EventEmitter<boolean>();
|
||||
|
||||
hasMasterPassword = true;
|
||||
|
||||
Reference in New Issue
Block a user