mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
feat(servarr): auto fill base url when testing service if missing (#1995)
* feat(servarr): auto fill base url when testing service if missing This will fill the base URL of the *arr service only if it's missing and the base URL hasn't been provided beforehand * fix(servarr): replace redundant check * fix(servarr): suggested changes
This commit is contained in:
committed by
GitHub
parent
54e9071e90
commit
739f667b54
@@ -82,6 +82,7 @@ interface TestResponse {
|
||||
id: number;
|
||||
label: string;
|
||||
}[];
|
||||
urlBase?: string;
|
||||
}
|
||||
|
||||
interface RadarrModalProps {
|
||||
@@ -317,6 +318,9 @@ const RadarrModal: React.FC<RadarrModalProps> = ({
|
||||
port: values.port,
|
||||
useSsl: values.ssl,
|
||||
});
|
||||
if (!values.baseUrl || values.baseUrl === '/') {
|
||||
setFieldValue('baseUrl', testResponse.urlBase);
|
||||
}
|
||||
}
|
||||
}}
|
||||
secondaryDisabled={
|
||||
|
||||
@@ -92,6 +92,7 @@ interface TestResponse {
|
||||
id: number;
|
||||
label: string;
|
||||
}[];
|
||||
urlBase?: string;
|
||||
}
|
||||
|
||||
interface SonarrModalProps {
|
||||
@@ -348,6 +349,9 @@ const SonarrModal: React.FC<SonarrModalProps> = ({
|
||||
port: values.port,
|
||||
useSsl: values.ssl,
|
||||
});
|
||||
if (!values.baseUrl || values.baseUrl === '/') {
|
||||
setFieldValue('baseUrl', testResponse.urlBase);
|
||||
}
|
||||
}
|
||||
}}
|
||||
secondaryDisabled={
|
||||
|
||||
Reference in New Issue
Block a user