1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

lock on system locked

This commit is contained in:
Kyle Spearrin
2019-03-19 16:12:26 -04:00
parent cd7b9bd449
commit 5d7f73b263
2 changed files with 18 additions and 4 deletions

View File

@@ -60,10 +60,16 @@ export class SettingsComponent implements OnInit {
{ name: i18nService.t('fourHours'), value: 240 },
{ name: i18nService.t('onIdle'), value: -4 },
{ name: i18nService.t('onSleep'), value: -3 },
// { name: i18nService.t('onLocked'), value: -2 },
];
if (this.platformUtilsService.getDevice() !== DeviceType.LinuxDesktop) {
this.lockOptions.push({ name: i18nService.t('onLocked'), value: -2 });
}
this.lockOptions = this.lockOptions.concat([
{ name: i18nService.t('onRestart'), value: -1 },
{ name: i18nService.t('never'), value: null },
];
]);
const localeOptions: any[] = [];
i18nService.supportedTranslationLocales.forEach((locale) => {