1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

Remove feature flag check from opt-out (#13130)

This commit is contained in:
Todd Martin
2025-02-06 14:37:08 -05:00
committed by GitHub
parent 1a001ff9a1
commit 3e988fae6f
2 changed files with 1 additions and 5 deletions

View File

@@ -9,7 +9,7 @@
</div> </div>
<app-danger-zone> <app-danger-zone>
<ng-container *ngIf="showSetNewDeviceLoginProtection$ | async"> <ng-container>
<button <button
*ngIf="verifyNewDeviceLogin" *ngIf="verifyNewDeviceLogin"
type="button" type="button"

View File

@@ -34,7 +34,6 @@ export class AccountComponent implements OnInit, OnDestroy {
showChangeEmail$: Observable<boolean> = new Observable(); showChangeEmail$: Observable<boolean> = new Observable();
showPurgeVault$: Observable<boolean> = new Observable(); showPurgeVault$: Observable<boolean> = new Observable();
showDeleteAccount$: Observable<boolean> = new Observable(); showDeleteAccount$: Observable<boolean> = new Observable();
showSetNewDeviceLoginProtection$: Observable<boolean> = new Observable();
verifyNewDeviceLogin: boolean = true; verifyNewDeviceLogin: boolean = true;
constructor( constructor(
@@ -48,9 +47,6 @@ export class AccountComponent implements OnInit, OnDestroy {
async ngOnInit() { async ngOnInit() {
const userId = await firstValueFrom(getUserId(this.accountService.activeAccount$)); const userId = await firstValueFrom(getUserId(this.accountService.activeAccount$));
this.showSetNewDeviceLoginProtection$ = this.configService.getFeatureFlag$(
FeatureFlag.NewDeviceVerification,
);
const isAccountDeprovisioningEnabled$ = this.configService.getFeatureFlag$( const isAccountDeprovisioningEnabled$ = this.configService.getFeatureFlag$(
FeatureFlag.AccountDeprovisioning, FeatureFlag.AccountDeprovisioning,
); );