aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts')
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts6
1 files changed, 2 insertions, 4 deletions
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 {
60 } 60 }
61 61
62 ngOnInit () { 62 ngOnInit () {
63 this.serverService.getConfig() 63 const serverConfig = this.serverService.getHTMLConfig()
64 .subscribe(config => { 64 this.emailEnabled = serverConfig.email.enabled
65 this.emailEnabled = config.email.enabled
66 })
67 65
68 this.userInformationLoaded.subscribe(() => this.loadNotificationSettings()) 66 this.userInformationLoaded.subscribe(() => this.loadNotificationSettings())
69 } 67 }