fix(sonarr): 🐛 Fixed an issue where the language list didn't correctly load for power users in the advanced options #4782

pull/4786/head
tidusjar 2 years ago
parent a40ab5cddf
commit 217367047d

@ -65,11 +65,9 @@ export class AdminRequestDialogComponent implements OnInit {
if (this.data.type === RequestType.tvShow) {
this.sonarrEnabled = await this.sonarrService.isEnabled();
if (this.sonarrEnabled) {
this.settingsService.getSonarr().subscribe((settings: ISonarrSettings) => {
this.sonarrService.getV3LanguageProfiles(settings).subscribe((profiles: ILanguageProfiles[]) => {
this.sonarrLanguageProfiles = profiles;
})
});
this.sonarrService.getV3LanguageProfilesWithoutSettings().subscribe((profiles: ILanguageProfiles[]) => {
this.sonarrLanguageProfiles = profiles;
})
this.sonarrService.getQualityProfilesWithoutSettings().subscribe(c => {
this.sonarrProfiles = c;
});

Loading…
Cancel
Save