X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2F%2Bmy-account%2Fmy-account-settings%2Fmy-account-notification-preferences%2Fmy-account-notification-preferences.component.ts;h=b94e6ad824d77ec37b05ca2c67646816fdf2907c;hb=2989628b7913383b39ac34c7db8666a21f8e5037;hp=c7e17303812825e4086fca013ca24baec3dff476;hpb=8e08d415f9473b6b72fef698729453e726da16e7;p=github%2FChocobozzz%2FPeerTube.git 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()) }