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:
parent
781dad3e17
commit
85a07237b1
3 changed files with 39 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue