Release Polish 2 (#3354)
This commit is contained in:
parent
e1aba57783
commit
0e0d8dca5b
21 changed files with 333 additions and 287 deletions
|
|
@ -139,6 +139,7 @@ export class ManageUserPreferencesComponent implements OnInit {
|
|||
|
||||
this.localizationService.getLocales().subscribe(res => {
|
||||
this.locales = res;
|
||||
|
||||
this.cdRef.markForCheck();
|
||||
});
|
||||
}
|
||||
|
|
@ -197,9 +198,6 @@ export class ManageUserPreferencesComponent implements OnInit {
|
|||
this.settingsForm.addControl('shareReviews', new FormControl(this.user.preferences.shareReviews, []));
|
||||
this.settingsForm.addControl('locale', new FormControl(this.user.preferences.locale || 'en', []));
|
||||
|
||||
if (this.locales.length === 1) {
|
||||
this.settingsForm.get('locale')?.disable();
|
||||
}
|
||||
|
||||
// Automatically save settings as we edit them
|
||||
this.settingsForm.valueChanges.pipe(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue