diff options
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-interface/my-account-interface-settings.component.ts')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-interface/my-account-interface-settings.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-interface/my-account-interface-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-interface/my-account-interface-settings.component.ts index f7055072f..5ec1c9f8f 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-interface/my-account-interface-settings.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-interface/my-account-interface-settings.component.ts | |||
@@ -29,6 +29,7 @@ export class MyAccountInterfaceSettingsComponent extends FormReactive implements | |||
29 | 29 | ||
30 | get availableThemes () { | 30 | get availableThemes () { |
31 | return this.serverService.getConfig().theme.registered | 31 | return this.serverService.getConfig().theme.registered |
32 | .map(t => t.name) | ||
32 | } | 33 | } |
33 | 34 | ||
34 | ngOnInit () { | 35 | ngOnInit () { |
@@ -53,9 +54,9 @@ export class MyAccountInterfaceSettingsComponent extends FormReactive implements | |||
53 | 54 | ||
54 | this.userService.updateMyProfile(details).subscribe( | 55 | this.userService.updateMyProfile(details).subscribe( |
55 | () => { | 56 | () => { |
56 | this.notifier.success(this.i18n('Interface settings updated.')) | 57 | this.authService.refreshUserInformation() |
57 | 58 | ||
58 | window.location.reload() | 59 | this.notifier.success(this.i18n('Interface settings updated.')) |
59 | }, | 60 | }, |
60 | 61 | ||
61 | err => this.notifier.error(err.message) | 62 | err => this.notifier.error(err.message) |