From fc0dedfda768f6c6921aa197606bc298479824bf Mon Sep 17 00:00:00 2001 From: Roman Usachev Date: Wed, 24 Feb 2016 01:34:20 +0300 Subject: [PATCH] Ports list now using HostConfig.PortBindings --- app/components/container/container.html | 4 ++-- app/components/container/containerController.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/components/container/container.html b/app/components/container/container.html index 8754845a5..419932e95 100644 --- a/app/components/container/container.html +++ b/app/components/container/container.html @@ -141,14 +141,14 @@
-
+
diff --git a/app/components/container/containerController.js b/app/components/container/containerController.js index ef3a7f3c2..9977ff37b 100644 --- a/app/components/container/containerController.js +++ b/app/components/container/containerController.js @@ -5,7 +5,7 @@ angular.module('container', []) $scope.edit = false; $scope.newCfg = { Env: [], - NetworkSettings: {} + Ports: {} }; var update = function () { @@ -17,8 +17,8 @@ angular.module('container', []) $scope.newCfg.Env = d.Config.Env.map(function(entry) { return {name: entry.split('=')[0], value: entry.split('=')[1]}; }); - $scope.newCfg.NetworkSettings.Ports = angular.copy(d.NetworkSettings.Ports) || []; - angular.forEach($scope.newCfg.NetworkSettings.Ports, function(conf, port, arr) { arr[port] = conf || []; }); + $scope.newCfg.Ports = angular.copy(d.HostConfig.PortBindings) || []; + angular.forEach($scope.newCfg.Ports, function(conf, port, arr) { arr[port] = conf || []; }); ViewSpinner.stop(); }, function (e) { @@ -76,7 +76,7 @@ angular.module('container', []) return entry.name+"="+entry.value; }); - var portBindings = angular.copy($scope.newCfg.NetworkSettings.Ports); + var portBindings = angular.copy($scope.newCfg.Ports); ViewSpinner.spin();