From 8ec2b9d0cdc361dac9f4f260bb679c2920202ddf Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 14 Jun 2022 20:33:26 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20Make=20credentials=20non-req?= =?UTF-8?q?uired=20for=20torrents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #201 --- src/components/AppShelf/AddAppShelfItem.tsx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index be6034f6b..9b86ab5fa 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -276,7 +276,9 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } & )} - {form.values.type === 'qBittorrent' && ( + {(form.values.type === 'Deluge' || + form.values.type === 'Transmission' || + form.values.type === 'qBittorrent') && ( <> void } & error={form.errors.username && 'Invalid username'} /> { - form.setFieldValue('password', event.currentTarget.value); - }} - error={form.errors.password && 'Invalid password'} - /> - - )} - {(form.values.type === 'Deluge' || form.values.type === 'Transmission') && ( - <> - Date: Wed, 15 Jun 2022 06:47:53 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20Fix=20required=20username?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppShelf/AddAppShelfItem.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index 9b86ab5fa..1106bb0db 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -281,7 +281,6 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } & form.values.type === 'qBittorrent') && ( <>