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 {
 | 
			
		||||
  constructor(data) {
 | 
			
		||||
    this.IPAddress = data.IPAddress;
 | 
			
		||||
    this.NodeName = data.NodeName;
 | 
			
		||||
    this.NodeRole = data.NodeRole;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue