@@ -74,6 +74,8 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
7474 icon : props . icon ?? '/favicon.svg' ,
7575 url : props . url ?? '' ,
7676 apiKey : props . apiKey ?? ( undefined as unknown as string ) ,
77+ username : props . username ?? ( undefined as unknown as string ) ,
78+ password : props . password ?? ( undefined as unknown as string ) ,
7779 } ,
7880 validate : {
7981 apiKey : ( ) => null ,
@@ -188,6 +190,44 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
188190 error = { form . errors . apiKey && 'Invalid API key' }
189191 />
190192 ) }
193+ { form . values . type === 'qBittorrent' && (
194+ < >
195+ < TextInput
196+ required
197+ label = "Username"
198+ placeholder = "admin"
199+ value = { form . values . username }
200+ onChange = { ( event ) => {
201+ form . setFieldValue ( 'username' , event . currentTarget . value ) ;
202+ } }
203+ error = { form . errors . username && 'Invalid username' }
204+ />
205+ < TextInput
206+ required
207+ label = "Password"
208+ placeholder = "adminadmin"
209+ value = { form . values . password }
210+ onChange = { ( event ) => {
211+ form . setFieldValue ( 'password' , event . currentTarget . value ) ;
212+ } }
213+ error = { form . errors . password && 'Invalid password' }
214+ />
215+ </ >
216+ ) }
217+ { form . values . type === 'Deluge' && (
218+ < >
219+ < TextInput
220+ required
221+ label = "Password"
222+ placeholder = "deluge"
223+ value = { form . values . password }
224+ onChange = { ( event ) => {
225+ form . setFieldValue ( 'password' , event . currentTarget . value ) ;
226+ } }
227+ error = { form . errors . password && 'Invalid password' }
228+ />
229+ </ >
230+ ) }
191231 </ Group >
192232
193233 < Group grow position = "center" mt = "xl" >
0 commit comments