Skip to content

Commit

Permalink
Remove lock and logout settings from Safari Account Settings (#12699)
Browse files Browse the repository at this point in the history
  • Loading branch information
trmartin4 authored Jan 8, 2025
1 parent 16a0176 commit d9e65ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,6 @@ <h2 bitTypography="h6">{{ "otherOptions" | i18n }}</h2>
<i slot="end" class="bwi bwi-external-link" aria-hidden="true"></i>
</button>
</bit-item>
<bit-item
*ngIf="
!accountSwitcherEnabled && availableVaultTimeoutActions.includes(VaultTimeoutAction.Lock)
"
>
<button bit-item-content type="button" appStopClick (click)="lock()"></button>
{{ "lockNow" | i18n }}
</bit-item>
<bit-item *ngIf="!accountSwitcherEnabled">
<button bit-item-content type="button" appStopClick (click)="logOut()"></button>
{{ "logOut" | i18n }}
</bit-item>
</bit-section>
</div>
</popup-page>
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import {

import { BiometricErrors, BiometricErrorTypes } from "../../../models/biometricErrors";
import { BrowserApi } from "../../../platform/browser/browser-api";
import { enableAccountSwitching } from "../../../platform/flags";
import BrowserPopupUtils from "../../../platform/popup/browser-popup-utils";
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
Expand Down Expand Up @@ -107,7 +106,6 @@ export class AccountSecurityComponent implements OnInit, OnDestroy {
hasVaultTimeoutPolicy = false;
biometricUnavailabilityReason: string;
showChangeMasterPass = true;
accountSwitcherEnabled = false;

form = this.formBuilder.group({
vaultTimeout: [null as VaultTimeout | null],
Expand Down Expand Up @@ -140,9 +138,7 @@ export class AccountSecurityComponent implements OnInit, OnDestroy {
private biometricStateService: BiometricStateService,
private toastService: ToastService,
private biometricsService: BiometricsService,
) {
this.accountSwitcherEnabled = enableAccountSwitching();
}
) {}

async ngOnInit() {
const hasMasterPassword = await this.userVerificationService.hasMasterPassword();
Expand Down

0 comments on commit d9e65ac

Please sign in to comment.