mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
refactor(agent): replace model with class (#4089)
This commit is contained in:
parent
3a33365133
commit
c9dd6e3851
1 changed files with 6 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue