mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
Fixed issue with undefined values in admin tab
This commit is contained in:
parent
7787cbad8d
commit
2da163430a
@ -161,8 +161,8 @@ jQuery(function(){
|
|||||||
$("#tblUser tbody tr").remove();
|
$("#tblUser tbody tr").remove();
|
||||||
$.each(data || [], function(i, e){
|
$.each(data || [], function(i, e){
|
||||||
var row = '<tr>' +
|
var row = '<tr>' +
|
||||||
'<td style="vertical-align: middle;">' + e.Username + '</td>' +
|
'<td style="vertical-align: middle;">' + e.username + '</td>' +
|
||||||
'<td style="vertical-align: middle;">' + e.Email + '</td>';
|
'<td style="vertical-align: middle;">' + e.email + '</td>';
|
||||||
if(e.HasAdminRole == 1){
|
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>';
|
row += '<td style="padding-left: 30px;"><button type="button" class="btn btn-success" userid="' + e.UserId + '">' + i18n.getMessage("button_on") + '</button></td>';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user