diff --git a/app-frontend/src/containers/Apps/AppConfigs.tsx b/app-frontend/src/containers/Apps/AppConfigs.tsx
index 4c499f4..1e8af37 100644
--- a/app-frontend/src/containers/Apps/AppConfigs.tsx
+++ b/app-frontend/src/containers/Apps/AppConfigs.tsx
@@ -63,25 +63,43 @@ export default class AppConfigs extends Component<
}
createPortRows() {
- /*
-
-
-
- */
- return createVolRows
;
+ const self = this;
+ const ports = this.props.apiData.appDefinition.ports;
+ return Utils.map(ports, function(value, index) {
+ return (
+
+
+
+ {
+ const newApiData = Utils.copyObject(self.props.apiData);
+ const p = Number(e.target.value.trim());
+ newApiData.appDefinition.ports[index].hostPort =
+ p > 0 ? p : 0; // to avoid NaN
+ }}
+ />
+
+
+
+ {
+ const newApiData = Utils.copyObject(self.props.apiData);
+ const p = Number(e.target.value.trim());
+ newApiData.appDefinition.ports[index].containerPort =
+ p > 0 ? p : 0; // to avoid NaN
+ }}
+ />
+
+
+ );
+ });
}
createVolSection() {
@@ -204,6 +222,9 @@ export default class AppConfigs extends Component<
>
Currently, this app does not have any custom port mapping.
+
+ {this.createPortRows()}
+