File tree Expand file tree Collapse file tree 1 file changed +25
-22
lines changed
frontend/src/components/forms Expand file tree Collapse file tree 1 file changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -1077,29 +1077,32 @@ export const AddEditForm = ({ handleClose, existingItem }: Props) => {
10771077 } }
10781078 />
10791079 </ Grid >
1080- < Grid >
1081- < TextFieldElement
1082- name = 'tcUsername'
1083- label = 'Username'
1084- variant = 'outlined'
1085- fullWidth
1086- autoComplete = 'off'
1087- required = { torrentClientType === TORRENT_CLIENT_TYPE . QBITTORRENT }
1088- sx = { {
1089- width : '100%' ,
1090- '& .MuiOutlinedInput-root' : {
1091- '& fieldset' : {
1092- borderColor : 'text.primary' ,
1080+ { /* Only show username field for qBittorrent */ }
1081+ { torrentClientType === TORRENT_CLIENT_TYPE . QBITTORRENT && (
1082+ < Grid >
1083+ < TextFieldElement
1084+ name = 'tcUsername'
1085+ label = 'Username'
1086+ variant = 'outlined'
1087+ fullWidth
1088+ autoComplete = 'off'
1089+ required
1090+ sx = { {
1091+ width : '100%' ,
1092+ '& .MuiOutlinedInput-root' : {
1093+ '& fieldset' : {
1094+ borderColor : 'text.primary' ,
1095+ } ,
1096+ '&:hover fieldset' : { borderColor : theme . palette . primary . main } ,
1097+ '&.Mui-focused fieldset' : { borderColor : theme . palette . primary . main , } ,
10931098 } ,
1094- '&:hover fieldset' : { borderColor : theme . palette . primary . main } ,
1095- '&.Mui-focused fieldset' : { borderColor : theme . palette . primary . main , } ,
1096- } ,
1097- } }
1098- slotProps = { {
1099- inputLabel : { style : { color : theme . palette . text . primary } }
1100- } }
1101- />
1102- </ Grid >
1099+ } }
1100+ slotProps = { {
1101+ inputLabel : { style : { color : theme . palette . text . primary } }
1102+ } }
1103+ />
1104+ </ Grid >
1105+ ) }
11031106 < Grid >
11041107 < TextFieldElement
11051108 name = 'tcPassword'
You can’t perform that action at this time.
0 commit comments