1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Revert last commit due to requested changes

Revert last commit due to requested changes.
Renamed variable.
This commit is contained in:
syntaxerror752
2020-05-30 10:21:42 +10:00
parent 674c583881
commit f36bba6406
19 changed files with 27 additions and 56 deletions

View File

@@ -25,7 +25,7 @@ export class OptionsComponent implements OnInit {
vaultTimeoutAction: string = 'lock';
disableIcons: boolean;
enableGravatars: boolean;
enableUIScaling: boolean;
enableFullWidth: boolean;
locale: string;
vaultTimeouts: any[];
localeOptions: any[];
@@ -67,7 +67,7 @@ export class OptionsComponent implements OnInit {
this.vaultTimeoutAction = await this.storageService.get<string>(ConstantsService.vaultTimeoutActionKey);
this.disableIcons = await this.storageService.get<boolean>(ConstantsService.disableFaviconKey);
this.enableGravatars = await this.storageService.get<boolean>('enableGravatars');
this.enableUIScaling = await this.storageService.get<boolean>('enableUIScaling');
this.enableFullWidth = await this.storageService.get<boolean>('enableFullWidth');
this.locale = this.startingLocale = await this.storageService.get<string>(ConstantsService.localeKey);
}
@@ -78,8 +78,8 @@ export class OptionsComponent implements OnInit {
await this.stateService.save(ConstantsService.disableFaviconKey, this.disableIcons);
await this.storageService.save('enableGravatars', this.enableGravatars);
await this.stateService.save('enableGravatars', this.enableGravatars);
await this.storageService.save('enableUIScaling', this.enableUIScaling);
await this.stateService.save('enableUIScaling', this.enableUIScaling);
await this.storageService.save('enableFullWidth', this.enableFullWidth);
await this.stateService.save('enableFullWidth', this.enableFullWidth);
await this.storageService.save(ConstantsService.localeKey, this.locale);
this.analytics.eventTrack.next({ action: 'Saved Options' });
if (this.locale !== this.startingLocale) {