From 2989628b7913383b39ac34c7db8666a21f8e5037 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Jun 2021 13:31:41 +0200 Subject: Use HTML config when possible --- .../my-account-notification-preferences.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client/src/app/+my-account') diff --git a/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts b/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts index c7e173038..b94e6ad82 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts @@ -60,10 +60,8 @@ export class MyAccountNotificationPreferencesComponent implements OnInit { } ngOnInit () { - this.serverService.getConfig() - .subscribe(config => { - this.emailEnabled = config.email.enabled - }) + const serverConfig = this.serverService.getHTMLConfig() + this.emailEnabled = serverConfig.email.enabled this.userInformationLoaded.subscribe(() => this.loadNotificationSettings()) } -- cgit v1.2.3