mirror of https://github.com/portainer/portainer
				
				
				
			refactor(agent): replace model with class (#4089)
							parent
							
								
									3a33365133
								
							
						
					
					
						commit
						c9dd6e3851
					
				| 
						 | 
					@ -1,5 +1,7 @@
 | 
				
			||||||
export function AgentViewModel(data) {
 | 
					export class AgentViewModel {
 | 
				
			||||||
  this.IPAddress = data.IPAddress;
 | 
					  constructor(data) {
 | 
				
			||||||
  this.NodeName = data.NodeName;
 | 
					    this.IPAddress = data.IPAddress;
 | 
				
			||||||
  this.NodeRole = data.NodeRole;
 | 
					    this.NodeName = data.NodeName;
 | 
				
			||||||
 | 
					    this.NodeRole = data.NodeRole;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue