diff --git a/app/kubernetes/views/applications/create/createApplication.html b/app/kubernetes/views/applications/create/createApplication.html index 61b16176c..627aaf510 100644 --- a/app/kubernetes/views/applications/create/createApplication.html +++ b/app/kubernetes/views/applications/create/createApplication.html @@ -1299,7 +1299,7 @@ ng-min="1" ng-max="65535" ng-required="!publishedPort.NeedsDeletion" - ng-change="ctrl.onChangePortMappingLoadBalancerPort()" + ng-change="ctrl.onChangePortMappingLoadBalancer()" ng-disabled="ctrl.disableLoadBalancerEdit() || ctrl.isEditAndNotNewPublishedPort($index)" /> diff --git a/app/kubernetes/views/applications/create/createApplicationController.js b/app/kubernetes/views/applications/create/createApplicationController.js index e6347e597..a0b3a32c1 100644 --- a/app/kubernetes/views/applications/create/createApplicationController.js +++ b/app/kubernetes/views/applications/create/createApplicationController.js @@ -409,13 +409,14 @@ class KubernetesCreateApplicationController { } onChangePortProtocol(index) { - this.onChangePortMappingContainerPort(); if (this.formValues.PublishingType === KubernetesApplicationPublishingTypes.LOAD_BALANCER) { const newPorts = _.filter(this.formValues.PublishedPorts, { IsNew: true }); _.forEach(newPorts, (port) => { port.Protocol = index ? this.formValues.PublishedPorts[index].Protocol : newPorts[0].Protocol; }); + this.onChangePortMappingLoadBalancer(); } + this.onChangePortMappingContainerPort(); } /* #endregion */