1
0
Fork 0
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:
Chaim Lev-Ari 2020-07-22 21:35:15 +03:00 committed by GitHub
parent 3a33365133
commit c9dd6e3851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}