Skip to content

Commit e7da6cd

Browse files
authored
relax editing of endpoint in add site replication UI (#2474)
1 parent 0f35369 commit e7da6cd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

portal-ui/src/screens/Console/Configurations/SiteReplication/AddReplicationSites.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const AddReplicationSites = () => {
236236
accessKey: es.accessKey,
237237
secretKey: es.secretKey,
238238
name: es.name,
239-
endpoint: es.endpoint,
239+
endpoint: es.endpoint.trim(),
240240
};
241241
});
242242

@@ -247,7 +247,7 @@ const AddReplicationSites = () => {
247247
accessKey: ns.accessKey,
248248
secretKey: ns.secretKey,
249249
name: ns.name || `dr-site-${idx}`,
250-
endpoint: ns.endpoint,
250+
endpoint: ns.endpoint.trim(),
251251
});
252252
}
253253
return acc;
@@ -291,7 +291,6 @@ const AddReplicationSites = () => {
291291
return (
292292
<SRSiteInputRow
293293
key={`current-${index}`}
294-
disabledFields={["endpoint"].concat(cs.isSaved ? "name" : "")}
295294
rowData={cs}
296295
rowId={index}
297296
fieldErrors={{
@@ -360,7 +359,6 @@ const AddReplicationSites = () => {
360359
accessKey: accessKeyError,
361360
secretKey: secretKeyError,
362361
}}
363-
disabledFields={ps.isSaved ? ["endpoint", "name"] : []}
364362
onFieldChange={(e, fieldName, index) => {
365363
const filedValue = e.target.value;
366364
setExistingSites((prevItems) => {

0 commit comments

Comments
 (0)