From 39cf4d75fffb33422557cad42ceb3a67df6e5499 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 23 Nov 2017 16:02:40 +0100 Subject: [PATCH] fix(container-creation): reset NetworkConfig when changing the network during container edition (#1431) --- app/components/createContainer/createContainerController.js | 6 ++++++ app/components/createContainer/createcontainer.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/components/createContainer/createContainerController.js b/app/components/createContainer/createContainerController.js index c62817aac..17fba00ce 100644 --- a/app/components/createContainer/createContainerController.js +++ b/app/components/createContainer/createContainerController.js @@ -349,6 +349,12 @@ function ($q, $scope, $state, $timeout, $transition$, $filter, Container, Contai } } + $scope.resetNetworkConfig = function() { + $scope.config.NetworkingConfig = { + EndpointsConfig: {} + }; + }; + function loadFromContainerNetworkConfig(d) { $scope.config.NetworkingConfig = { EndpointsConfig: {} diff --git a/app/components/createContainer/createcontainer.html b/app/components/createContainer/createcontainer.html index 8ac6a7c84..32b329c94 100644 --- a/app/components/createContainer/createcontainer.html +++ b/app/components/createContainer/createcontainer.html @@ -296,7 +296,7 @@
-