mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
Merge pull request #160 from senk/fix-undefined-error
Fixed issue with undefined values in admin tab
This commit is contained in:
commit
12d63b17af
@ -161,8 +161,8 @@ jQuery(function(){
|
||||
$("#tblUser tbody tr").remove();
|
||||
$.each(data || [], function(i, e){
|
||||
var row = '<tr>' +
|
||||
'<td style="vertical-align: middle;">' + e.Username + '</td>' +
|
||||
'<td style="vertical-align: middle;">' + e.Email + '</td>';
|
||||
'<td style="vertical-align: middle;">' + e.username + '</td>' +
|
||||
'<td style="vertical-align: middle;">' + e.email + '</td>';
|
||||
if(e.HasAdminRole == 1){
|
||||
row += '<td style="padding-left: 30px;"><button type="button" class="btn btn-success" userid="' + e.UserId + '">' + i18n.getMessage("button_on") + '</button></td>';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user