mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(app): Fix ports displayed twice when using docker EE-706 (#5239)
* fix duplicate port showing using docker * fix changes from review by using lodash for filter * move container filter in filter folder * change filter name to unique for reuse
This commit is contained in:
parent
09c5bada3e
commit
c26af1449c
2 changed files with 4 additions and 1 deletions
|
@ -262,7 +262,7 @@
|
|||
<td ng-show="$ctrl.columnVisibility.columns.ports.display">
|
||||
<a
|
||||
ng-if="item.Ports.length > 0"
|
||||
ng-repeat="p in item.Ports"
|
||||
ng-repeat="p in item.Ports | unique: 'public'"
|
||||
class="image-tag"
|
||||
ng-href="http://{{ $ctrl.state.publicURL || p.host }}:{{ p.public }}"
|
||||
target="_blank"
|
||||
|
|
|
@ -322,4 +322,7 @@ angular
|
|||
}
|
||||
return fullName.substring(0, versionIdx);
|
||||
};
|
||||
})
|
||||
.filter('unique', function () {
|
||||
return _.uniqBy;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue