mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 09:38:09 +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();
|
$("#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