mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
Cleanup, localize error.
This commit is contained in:
@@ -46,7 +46,7 @@ export class LockComponent extends BaseLockComponent {
|
||||
const div = document.createElement('div');
|
||||
div.innerHTML = `<div class="swal2-text">${this.i18nService.t('awaitDesktop')}</div>`;
|
||||
|
||||
const submitted = Swal.fire({
|
||||
Swal.fire({
|
||||
heightAuto: false,
|
||||
buttonsStyling: false,
|
||||
html: div,
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</div>
|
||||
<div class="box-content-row box-content-row-checkbox" appBoxRow>
|
||||
<label for="biometric">{{'unlockWithBiometric' | i18n}}</label>
|
||||
<input id="biometric" type="checkbox" (change)="updateBiometric()" [ngModel]="biometric">
|
||||
<input id="biometric" type="checkbox" (change)="updateBiometric()" [checked]="biometric">
|
||||
</div>
|
||||
<a class="box-content-row box-content-row-flex text-default" href="#" appStopClick appBlurClick
|
||||
(click)="lock()">
|
||||
|
||||
@@ -209,7 +209,6 @@ export class SettingsComponent implements OnInit {
|
||||
async updateBiometric() {
|
||||
if (this.biometric) {
|
||||
this.biometric = false;
|
||||
// TODO: Remove biometric stuff
|
||||
await this.storageService.remove(ConstantsService.biometricUnlockKey);
|
||||
this.vaultTimeoutService.biometricLocked = false;
|
||||
} else {
|
||||
@@ -241,7 +240,7 @@ export class SettingsComponent implements OnInit {
|
||||
|
||||
Swal.close();
|
||||
if (this.biometric === false) {
|
||||
this.platformUtilsService.showToast('error', 'Unable to enable biometrics', 'Ensure the desktop application is running, and browser integration is enabled.');
|
||||
this.platformUtilsService.showToast('error', this.i18nService.t('errorEnableBiometricTitle'), this.i18nService.t('errorEnableBiometricDesc'));
|
||||
}
|
||||
})
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user