mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
11 lines
241 B
JavaScript
11 lines
241 B
JavaScript
function UserViewModel(data) {
|
|
this.Id = data.Id;
|
|
this.Username = data.Username;
|
|
this.Role = data.Role;
|
|
if (data.Role === 1) {
|
|
this.RoleName = 'administrator';
|
|
} else {
|
|
this.RoleName = 'user';
|
|
}
|
|
this.Checked = false;
|
|
}
|