From 8eb48e4311461cb49a92f860f308d155179b8c04 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 31 Jul 2018 00:02:09 -0400 Subject: [PATCH] rename to "enable gravatars" --- src/app/components/avatar.component.ts | 4 ++-- src/app/services/services.module.ts | 2 +- src/app/settings/options.component.html | 8 ++++---- src/app/settings/options.component.ts | 8 ++++---- src/locales/en/messages.json | 6 +++--- src/services/htmlStorage.service.ts | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) 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}}