From ea972effb4aeada3eceb21e414e5f34e7ba90b6c Mon Sep 17 00:00:00 2001 From: ajnart Date: Mon, 6 Jun 2022 18:26:29 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20different=20URL=20for=20API?= =?UTF-8?q?=20calls=20Fixes=20#163?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppShelf/AddAppShelfItem.tsx | 6 ++++++ src/components/AppShelf/AppShelfItem.tsx | 3 ++- src/components/AppShelf/AppShelfMenu.tsx | 1 + src/tools/types.ts | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index c05d30e68..c08837222 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -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')} /> +