Files
backroad/app/portainer/models/access.js
Ali d78b762f7b refactor(icons): replace fa icons [EE-4459] (#7907)
refactor(icons): remove fontawesome EE-4459

refactor(icon) replace feather with lucide EE-4472
2022-11-28 15:00:28 +13:00

20 lines
505 B
JavaScript

// create UserAccessViewModel from UserViewModel
export function UserAccessViewModel(data) {
this.Id = data.Id;
this.Name = data.Username;
this.Type = 'user';
this.Inherited = false;
this.Override = false;
this.Role = { Id: 0, Name: '-' };
}
// create TeamAccessViewModel from TeamViewModel
export function TeamAccessViewModel(data) {
this.Id = data.Id;
this.Name = data.Name;
this.Type = 'team';
this.Inherited = false;
this.Override = false;
this.Role = { Id: 0, Name: '-' };
}