@@ -399,7 +399,7 @@ function SftpForm({ value = {}, onChange }) {
399399 ) ;
400400}
401401
402- function HttpForm ( { value = { } , onChange, showHttpCreds = false } ) {
402+ function HttpForm ( { value = { } , onChange } ) {
403403 return (
404404 < >
405405 < TextField label = "Host" value = { value . host || '' } onChange = { onChange ( 'host' ) } fullWidth />
@@ -411,27 +411,23 @@ function HttpForm({ value = {}, onChange, showHttpCreds = false }) {
411411 onBlur = { onPathBlur ( 'path' , onChange ( 'path' ) ) }
412412 fullWidth
413413 />
414- { showHttpCreds && (
415- < >
416- < URIComponentTextField
417- label = "URL Username"
418- value = { value . username || '' }
419- onChange = { onChange ( 'username' ) }
420- fullWidth
421- />
422- < URIComponentTextField
423- label = "URL Password"
424- value = { value . password || '' }
425- onChange = { onChange ( 'password' ) }
426- fullWidth
427- />
428- </ >
429- ) }
414+ < URIComponentTextField
415+ label = "URL Username"
416+ value = { value . username || '' }
417+ onChange = { onChange ( 'username' ) }
418+ fullWidth
419+ />
420+ < URIComponentTextField
421+ label = "URL Password"
422+ value = { value . password || '' }
423+ onChange = { onChange ( 'password' ) }
424+ fullWidth
425+ />
430426 </ >
431427 ) ;
432428}
433429
434- function HttpsForm ( { value = { } , onChange, showHttpCreds = false } ) {
430+ function HttpsForm ( { value = { } , onChange } ) {
435431 return (
436432 < >
437433 < TextField label = "Host" value = { value . host || '' } onChange = { onChange ( 'host' ) } fullWidth />
@@ -443,22 +439,18 @@ function HttpsForm({ value = {}, onChange, showHttpCreds = false }) {
443439 onChange = { onChange ( 'path' ) }
444440 fullWidth
445441 />
446- { showHttpCreds && (
447- < >
448- < URIComponentTextField
449- label = "URL Username"
450- value = { value . username || '' }
451- onChange = { onChange ( 'username' ) }
452- fullWidth
453- />
454- < URIComponentTextField
455- label = "URL Password"
456- value = { value . password || '' }
457- onChange = { onChange ( 'password' ) }
458- fullWidth
459- />
460- </ >
461- ) }
442+ < URIComponentTextField
443+ label = "URL Username"
444+ value = { value . username || '' }
445+ onChange = { onChange ( 'username' ) }
446+ fullWidth
447+ />
448+ < URIComponentTextField
449+ label = "URL Password"
450+ value = { value . password || '' }
451+ onChange = { onChange ( 'password' ) }
452+ fullWidth
453+ />
462454 </ >
463455 ) ;
464456}
0 commit comments