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