diff --git a/src/main/webui/src/app/components/content/remote/RemoteEdit.jsx b/src/main/webui/src/app/components/content/remote/RemoteEdit.jsx
index fa0a66d..aeff95f 100644
--- a/src/main/webui/src/app/components/content/remote/RemoteEdit.jsx
+++ b/src/main/webui/src/app/components/content/remote/RemoteEdit.jsx
@@ -18,7 +18,7 @@ import React, {useState, useEffect} from 'react';
import {useLocation, useParams} from 'react-router-dom';
import {PropTypes} from 'prop-types';
import {StoreEditControlPanel as EditControlPanel} from '../common/StoreControlPanels.jsx';
-import {DisableTimeoutHint, DurationHint, PrefetchHint, Hint} from '../common/Hints.jsx';
+import {DisableTimeoutHint, DurationHint, Hint} from '../common/Hints.jsx';
import {PackageTypeSelect} from '../common/PackageTypeSelect.jsx';
// import ViewJsonDebugger from './Debugger.jsx';
import {Utils} from '#utils/AppUtils.js';
@@ -31,7 +31,7 @@ const CertificateSection = ({store, handleValueChange}) =>
Client Key Password:
- handleValueChange(e, "key_password")}/>
+ handleValueChange(e, "key_password")}/>
}
@@ -44,7 +44,7 @@ const CertificateSection = ({store, handleValueChange}) =>
handleValueChange(e, "key_certificate_pem")}>
+
}
@@ -54,7 +54,7 @@ const CertificateSection = ({store, handleValueChange}) =>
handleValueChange(e, "server_certificate_pem")}>
+
;
@@ -69,8 +69,12 @@ export default function RemoteEdit() {
store: {},
storeView: {}
});
+ const [useProxy, setUseProxy] = useState(false);
+ const [useAuth, setUseAuth] = useState(false);
+ const [useX509, setUseX509] = useState(false);
const location = useLocation();
const {packageType, name} = useParams();
+
const path = location.pathname;
const mode = path.match(/.*\/new$/u)? 'new':'edit';
let [pkgType, storeName] = ["",""];
@@ -105,6 +109,9 @@ export default function RemoteEdit() {
storeView: cloned,
store: raw
});
+ setUseProxy(storeView.useProxy);
+ setUseAuth(storeView.useAuth);
+ setUseX509(storeView.useX509);
}else{
// TODO: find another way to do error handling
response.text().then(error=>setState({
@@ -131,18 +138,15 @@ export default function RemoteEdit() {
const handleValueChange = (event, field) => {
store[field] = event.target.value;
};
- const handleRadioChange = (event, field) => {
- store[field] = event.target.value;
- };
const handleUseProxy = event=>{
- // TODO: need to implement
+ setUseProxy(event.target.checked);
};
const handleUseAuth = event => {
- // TODO: need to implement
+ setUseAuth(event.target.checked);
};
const handleUseX509 = event => {
- // TODO: need to implement
+ setUseX509(event.target.checked);
};
return (
@@ -170,13 +174,15 @@ export default function RemoteEdit() {
Name:
{
mode==='new'?
- handleValueChange(e, "name")} /> :
+
+ handleValueChange(e, "name")} />
+ :
{store.name}
}
- handleCheckChange(e, "disabled")} />{' '}
+ handleCheckChange(e, "disabled")}/>{' '}
Enabled?
{
store.disabled && store.disableExpiration &&
@@ -184,7 +190,7 @@ export default function RemoteEdit() {
}
- handleCheckChange(e, "authoritative_index")} />{' '}
+ handleCheckChange(e, "authoritative_index")} />{' '}
Authoritative content Index?
Make the content index authoritative to this repository
@@ -192,53 +198,53 @@ export default function RemoteEdit() {
Remote URL:
-
+ handleValueChange(e, "url")}/>
-
-
+ {/* prefetch support has been disabled in new Indy.
+
+
*/}
@@ -250,11 +256,11 @@ export default function RemoteEdit() {
Capabilities
@@ -263,7 +269,7 @@ export default function RemoteEdit() {