mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Fixed an issue with the test buttons on the *arr components not working correctly
This commit is contained in:
parent
e514aa4678
commit
f94f4ac1c0
4 changed files with 6 additions and 6 deletions
|
@ -109,7 +109,7 @@ export class LidarrComponent implements OnInit {
|
|||
this.testerService.lidarrTest(settings).subscribe(result => {
|
||||
if (result.isValid) {
|
||||
this.notificationService.success("Successfully connected to Lidarr!");
|
||||
} else if (result.expectedSubDir !== null) {
|
||||
} else if (result.expectedSubDir) {
|
||||
this.notificationService.error("Your Lidarr Base URL must be set to " + result.expectedSubDir);
|
||||
} else {
|
||||
this.notificationService.error("We could not connect to Lidarr!");
|
||||
|
|
|
@ -99,7 +99,7 @@ export class RadarrComponent implements OnInit {
|
|||
this.testerService.radarrTest(settings).subscribe(result => {
|
||||
if (result.isValid) {
|
||||
this.notificationService.success("Successfully connected to Radarr!");
|
||||
} else if (result.expectedSubDir !== null) {
|
||||
} else if (result.expectedSubDir) {
|
||||
this.notificationService.error("Your Radarr Base URL must be set to " + result.expectedSubDir);
|
||||
} else {
|
||||
this.notificationService.error("We could not connect to Radarr!");
|
||||
|
|
|
@ -153,7 +153,7 @@ export class SonarrComponent implements OnInit {
|
|||
this.testerService.sonarrTest(settings).subscribe(result => {
|
||||
if (result.isValid) {
|
||||
this.notificationService.success("Successfully connected to Sonarr!");
|
||||
} else if (result.expectedSubDir !== null) {
|
||||
} else if (result.expectedSubDir) {
|
||||
this.notificationService.error("Your Sonarr Base URL must be set to " + result.expectedSubDir);
|
||||
} else {
|
||||
this.notificationService.error("We could not connect to Sonarr!");
|
||||
|
|
|
@ -374,7 +374,7 @@ namespace Ombi.Controllers.V1.External
|
|||
var result = await RadarrApi.SystemStatus(settings.ApiKey, settings.FullUri);
|
||||
return new TesterResultModel
|
||||
{
|
||||
IsValid = result.urlBase == settings.SubDir,
|
||||
IsValid = result.urlBase == settings.SubDir || string.IsNullOrEmpty(result.urlBase) && string.IsNullOrEmpty(settings.SubDir),
|
||||
ExpectedSubDir = result.urlBase
|
||||
};
|
||||
}
|
||||
|
@ -399,7 +399,7 @@ namespace Ombi.Controllers.V1.External
|
|||
var result = await SonarrApi.SystemStatus(settings.ApiKey, settings.FullUri);
|
||||
return new TesterResultModel
|
||||
{
|
||||
IsValid = result.urlBase == settings.SubDir,
|
||||
IsValid = result.urlBase == settings.SubDir || string.IsNullOrEmpty(result.urlBase) && string.IsNullOrEmpty(settings.SubDir),
|
||||
ExpectedSubDir = result.urlBase
|
||||
};
|
||||
}
|
||||
|
@ -513,7 +513,7 @@ namespace Ombi.Controllers.V1.External
|
|||
var status = await LidarrApi.Status(settings.ApiKey, settings.FullUri);
|
||||
return new TesterResultModel
|
||||
{
|
||||
IsValid = status?.urlBase == settings.SubDir,
|
||||
IsValid = status?.urlBase == settings.SubDir || string.IsNullOrEmpty(result.urlBase) && string.IsNullOrEmpty(settings.SubDir),
|
||||
ExpectedSubDir = status?.urlBase
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue