1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(containers): update the containers view to add a column with exposed ports (#157)

This commit is contained in:
Anthony Lapenna 2016-08-24 10:58:55 +12:00 committed by GitHub
parent 5f290937d2
commit 71eb3feac9
4 changed files with 26 additions and 15 deletions

View file

@ -19,6 +19,13 @@ function ContainerViewModel(data) {
this.Image = data.Image;
this.Command = data.Command;
this.Checked = false;
this.Ports = [];
for (var i = 0; i < data.Ports.length; ++i) {
var p = data.Ports[i];
if (p.PublicPort) {
this.Ports.push({ host: p.IP, private: p.PrivatePort, public: p.PublicPort });
}
}
}
function createEventDetails(event) {