1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 14:29:40 +02:00

Missed passing run state

This commit is contained in:
Karl Gutwin 2015-08-12 16:20:28 -04:00
parent 8e0baf0e37
commit 34a3f8186a

View file

@ -6,6 +6,7 @@ angular.module('containersNetwork', ['ngVis'])
// names have the following format: /Name
this.Name = data.Name.substring(1);
this.Image = data.Config.Image;
this.Running = data.State.Running;
var dataLinks = data.HostConfig.Links;
if (dataLinks != null) {
this.Links = {};
@ -42,7 +43,7 @@ angular.module('containersNetwork', ['ngVis'])
"<li><strong>ID:</strong> " + container.Id + "</li>" +
"<li><strong>Image:</strong> " + container.Image + "</li>" +
"</ul>",
color: (container.State.Running ? null : "gray")
color: (container.Running ? null : "gray")
});
};