Add name column to account management interface
parent
e9e085e804
commit
d72e20b067
|
@ -302,6 +302,10 @@ CATEGORIES.push(new Category(
|
|||
async function listAccountHeaders() {
|
||||
const headerRow = document.createElement('tr');
|
||||
|
||||
const nameHeader = document.createElement('th');
|
||||
nameHeader.textContent = "Name";
|
||||
headerRow.appendChild(nameHeader);
|
||||
|
||||
const emailHeader = document.createElement('th');
|
||||
emailHeader.textContent = "Email";
|
||||
headerRow.appendChild(emailHeader);
|
||||
|
@ -316,7 +320,11 @@ CATEGORIES.push(new Category(
|
|||
|
||||
itemsListTable.appendChild(headerRow);
|
||||
},
|
||||
function listAccount(account, row) {
|
||||
function listAccount(account, row) {
|
||||
const nameCell = document.createElement('td');
|
||||
nameCell.textContent = account.name;
|
||||
row.appendChild(nameCell);
|
||||
|
||||
const emailCell = document.createElement('td');
|
||||
emailCell.textContent = account.email;
|
||||
row.appendChild(emailCell);
|
||||
|
|
Reference in New Issue