diff --git a/public/scripts/manage.js b/public/scripts/manage.js index 2ab7cbd..f6fd2fe 100644 --- a/public/scripts/manage.js +++ b/public/scripts/manage.js @@ -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);