Add different URL for API calls

Fixes #163
This commit is contained in:
ajnart
2022-06-06 18:26:29 +02:00
parent 9686761c3d
commit ea972effb4
4 changed files with 10 additions and 1 deletions

View File

@@ -111,6 +111,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
apiKey: props.apiKey ?? (undefined as unknown as string),
username: props.username ?? (undefined as unknown as string),
password: props.password ?? (undefined as unknown as string),
openedUrl: props.openedUrl ?? (undefined as unknown as string),
},
validate: {
apiKey: () => null,
@@ -208,6 +209,11 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
placeholder="http://localhost:7575"
{...form.getInputProps('url')}
/>
<TextInput
label="Opened url"
placeholder="http://sonarr.remote.com"
{...form.getInputProps('openedUrl')}
/>
<Select
label="Service type"
defaultValue="Other"