portainer/app/models/api/endpointAccess.js

12 lines
235 B
JavaScript

function EndpointAccessUserViewModel(data) {
this.Id = data.Id;
this.Name = data.Username;
this.Type = 'user';
}
function EndpointAccessTeamViewModel(data) {
this.Id = data.Id;
this.Name = data.Name;
this.Type = 'team';
}