1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

feat(swarm): display the IP address of each node when API Version >= … (#595)

This commit is contained in:
Anthony Lapenna 2017-02-13 22:39:02 +13:00 committed by GitHub
parent 781dad3e17
commit 85a07237b1
3 changed files with 39 additions and 25 deletions

View file

@ -27,6 +27,10 @@ function NodeViewModel(data) {
this.Plugins = data.Description.Engine.Plugins;
this.Status = data.Status.State;
if (data.Status.Addr) {
this.Addr = data.Status.Addr;
}
if (data.ManagerStatus) {
this.Leader = data.ManagerStatus.Leader;
this.Reachability = data.ManagerStatus.Reachability;