1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

[Auto Logout] Added warning dialog for log out action (#518)

* Added warning dialog for log out timeout action

* Reverting testing service module endpoints
This commit is contained in:
Vincent Salucci
2020-04-25 08:13:30 -05:00
committed by GitHub
parent ded8865914
commit aa1e5a11ad
2 changed files with 15 additions and 0 deletions

View File

@@ -70,6 +70,15 @@ export class OptionsComponent implements OnInit {
}
async submit() {
if (this.vaultTimeoutAction === 'logOut') {
const confirmed = await this.platformUtilsService.showDialog(
this.i18nService.t('vaultTimeoutLogOutConfirmation'),
this.i18nService.t('vaultTimeoutLogOutConfirmationTitle'),
this.i18nService.t('yes'), this.i18nService.t('cancel'), 'warning');
if (!confirmed) {
return;
}
}
await this.vaultTimeoutService.setVaultTimeoutOptions(this.vaultTimeout != null ? this.vaultTimeout : null,
this.vaultTimeoutAction);
await this.storageService.save(ConstantsService.disableFaviconKey, this.disableIcons);