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:
parent
5f290937d2
commit
71eb3feac9
4 changed files with 26 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue