1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 02:33:46 +00:00

Cleanup, localize error.

This commit is contained in:
Hinton
2020-10-21 17:18:04 +02:00
parent 9064298309
commit 0a4d59092b
6 changed files with 52 additions and 45 deletions

View File

@@ -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,

View File

@@ -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()">

View File

@@ -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'));
}
})
]);