diff --git a/src/app/components/avatar.component.ts b/src/app/components/avatar.component.ts index 429723bdcc..1108247820 100644 --- a/src/app/components/avatar.component.ts +++ b/src/app/components/avatar.component.ts @@ -45,8 +45,8 @@ export class AvatarComponent implements OnChanges, OnInit { } private async generate() { - const useGravatars = await this.stateService.get('useGravatars'); - if (useGravatars && this.email != null) { + const enableGravatars = await this.stateService.get('enableGravatars'); + if (enableGravatars && this.email != null) { const hashBytes = await this.cryptoFunctionService.hash(this.email.toLowerCase().trim(), 'md5'); const hash = Utils.fromBufferToHex(hashBytes).toLowerCase(); this.src = 'https://www.gravatar.com/avatar/' + hash + '?s=' + this.size + '&r=pg&d=retro'; diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index fc6e77a140..448efa99e6 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -146,7 +146,7 @@ export function initFactory(): Function { htmlEl.classList.add('theme_' + theme); stateService.save(ConstantsService.disableFaviconKey, await storageService.get(ConstantsService.disableFaviconKey)); - stateService.save('useGravatars', await storageService.get('useGravatars')); + stateService.save('enableGravatars', await storageService.get('enableGravatars')); }; } diff --git a/src/app/settings/options.component.html b/src/app/settings/options.component.html index 049eaa9edb..c9ac1f2506 100644 --- a/src/app/settings/options.component.html +++ b/src/app/settings/options.component.html @@ -44,15 +44,15 @@
- -
- {{'useGravatarsDesc' | i18n}} + {{'enableGravatarsDesc' | i18n}}