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
pull/5352/head
Richard Wei 2021-07-23 11:29:01 +12:00 committed by GitHub
parent 09c5bada3e
commit c26af1449c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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"

View File

@ -322,4 +322,7 @@ angular
}
return fullName.substring(0, versionIdx);
};
})
.filter('unique', function () {
return _.uniqBy;
});