mirror of https://github.com/portainer/portainer
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 reusepull/5352/head
parent
09c5bada3e
commit
c26af1449c
|
@ -262,7 +262,7 @@
|
||||||
<td ng-show="$ctrl.columnVisibility.columns.ports.display">
|
<td ng-show="$ctrl.columnVisibility.columns.ports.display">
|
||||||
<a
|
<a
|
||||||
ng-if="item.Ports.length > 0"
|
ng-if="item.Ports.length > 0"
|
||||||
ng-repeat="p in item.Ports"
|
ng-repeat="p in item.Ports | unique: 'public'"
|
||||||
class="image-tag"
|
class="image-tag"
|
||||||
ng-href="http://{{ $ctrl.state.publicURL || p.host }}:{{ p.public }}"
|
ng-href="http://{{ $ctrl.state.publicURL || p.host }}:{{ p.public }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
|
@ -322,4 +322,7 @@ angular
|
||||||
}
|
}
|
||||||
return fullName.substring(0, versionIdx);
|
return fullName.substring(0, versionIdx);
|
||||||
};
|
};
|
||||||
|
})
|
||||||
|
.filter('unique', function () {
|
||||||
|
return _.uniqBy;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue