From 7780ae3d7af4e0be7c197dfb06942d0bd84e1276 Mon Sep 17 00:00:00 2001 From: ajnart Date: Mon, 20 Jun 2022 10:17:49 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Re-implement=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppShelf/AddAppShelfItem.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index cff74d57a..f9229d220 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -321,8 +321,19 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } & /> )} - {(form.values.type === 'Deluge' || form.values.type === 'Transmission') && ( + {(form.values.type === 'Deluge' || + form.values.type === 'Transmission' || + form.values.type === 'qBittorrent') && ( <> + { + form.setFieldValue('username', event.currentTarget.value); + }} + error={form.errors.username && 'Invalid username'} + />