|
|
@ -53,6 +53,7 @@ export class AccountPageComponent implements OnDestroy, OnInit { |
|
|
|
public hasPermissionToDeleteAccess: boolean; |
|
|
|
public hasPermissionToUpdateViewMode: boolean; |
|
|
|
public hasPermissionToUpdateUserSettings: boolean; |
|
|
|
public language = document.documentElement.lang; |
|
|
|
public locales = ['de', 'de-CH', 'en-GB', 'en-US']; |
|
|
|
public price: number; |
|
|
|
public priceId: string; |
|
|
@ -148,6 +149,10 @@ export class AccountPageComponent implements OnDestroy, OnInit { |
|
|
|
this.update(); |
|
|
|
} |
|
|
|
|
|
|
|
public onChangeLanguage(aLanguage: string) { |
|
|
|
window.location.href = `../${aLanguage}/account`; |
|
|
|
} |
|
|
|
|
|
|
|
public onChangeUserSetting(aKey: string, aValue: string) { |
|
|
|
this.dataService |
|
|
|
.putUserSetting({ [aKey]: aValue }) |
|
|
|