relax editing of endpoint in add site replication UI (#2474)

This commit is contained in:
Prakash Senthil Vel
2022-11-22 22:37:16 +05:30
committed by GitHub
parent 0f35369292
commit e7da6cd651

View File

@@ -236,7 +236,7 @@ const AddReplicationSites = () => {
accessKey: es.accessKey, accessKey: es.accessKey,
secretKey: es.secretKey, secretKey: es.secretKey,
name: es.name, name: es.name,
endpoint: es.endpoint, endpoint: es.endpoint.trim(),
}; };
}); });
@@ -247,7 +247,7 @@ const AddReplicationSites = () => {
accessKey: ns.accessKey, accessKey: ns.accessKey,
secretKey: ns.secretKey, secretKey: ns.secretKey,
name: ns.name || `dr-site-${idx}`, name: ns.name || `dr-site-${idx}`,
endpoint: ns.endpoint, endpoint: ns.endpoint.trim(),
}); });
} }
return acc; return acc;
@@ -291,7 +291,6 @@ const AddReplicationSites = () => {
return ( return (
<SRSiteInputRow <SRSiteInputRow
key={`current-${index}`} key={`current-${index}`}
disabledFields={["endpoint"].concat(cs.isSaved ? "name" : "")}
rowData={cs} rowData={cs}
rowId={index} rowId={index}
fieldErrors={{ fieldErrors={{
@@ -360,7 +359,6 @@ const AddReplicationSites = () => {
accessKey: accessKeyError, accessKey: accessKeyError,
secretKey: secretKeyError, secretKey: secretKeyError,
}} }}
disabledFields={ps.isSaved ? ["endpoint", "name"] : []}
onFieldChange={(e, fieldName, index) => { onFieldChange={(e, fieldName, index) => {
const filedValue = e.target.value; const filedValue = e.target.value;
setExistingSites((prevItems) => { setExistingSites((prevItems) => {