From 8ec2b9d0cdc361dac9f4f260bb679c2920202ddf Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 14 Jun 2022 20:33:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Make=20credentials=20non-require?= =?UTF-8?q?d=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') && ( - <> -