Skip to content

Commit

Permalink
Merge branch 'master' into dist
Browse files Browse the repository at this point in the history
  • Loading branch information
kevana committed Mar 23, 2016
2 parents 4700882 + 8cdb675 commit d40b487
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/container/container.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h4>
<div ng-show="!editPorts">
<button class="btn btn-default btn-xs pull-right" ng-click="editPorts = true"><i class="glyphicon glyphicon-pencil"></i></button>
<ul>
<li ng-repeat="(containerport, hostports) in container.HostConfig.PortBindings">
<li ng-repeat="(containerport, hostports) in container.NetworkSettings.Ports">
{{ containerport }} =>
<span class="label label-default" style="margin-right: 5px;" ng-repeat="(k,v) in hostports">{{ v.HostIp }}:{{ v.HostPort }}</span>
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/components/startContainer/startContainerController.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ angular.module('startContainer', ['ui.bootstrap'])

function rmEmptyKeys(col) {
for (var key in col) {
if (col[key] === null || col[key] === undefined || col[key] === '' || $.isEmptyObject(col[key]) || col[key].length === 0) {
if (col[key] === null || col[key] === undefined || col[key] === '' || ($.isPlainObject(col[key]) && $.isEmptyObject(col[key])) || col[key].length === 0) {
delete col[key];
}
}
Expand Down
Loading

0 comments on commit d40b487

Please sign in to comment.