From 54ce13847508c15b5763ac52c80939e2288ba0fe Mon Sep 17 00:00:00 2001 From: ajnart Date: Thu, 26 May 2022 21:07:01 +0200 Subject: [PATCH] :sparkles: Add deluge password saving --- src/components/AppShelf/AddAppShelfItem.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index 0eb71e6e4..2ac5805f2 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -214,6 +214,20 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } & /> )} + {form.values.type === 'Deluge' && ( + <> + { + form.setFieldValue('password', event.currentTarget.value); + }} + error={form.errors.password && 'Invalid password'} + /> + + )}