Fix sent messages

This commit is contained in:
Marcin Kowalicki 2021-01-12 16:12:47 +01:00 committed by GitHub
parent 5c7194ae07
commit ca31a9508e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ const getSentMessages = () => {
table.innerHTML = "<thead>\n" + table.innerHTML = "<thead>\n" +
" <tr>\n" + " <tr>\n" +
" <th>Temat</th>\n" + " <th>Temat</th>\n" +
" <th>Nadawca</th>\n" + " <th>Adresat</th>\n" +
" <th>Data</th>\n" + " <th>Data</th>\n" +
" </tr>\n" + " </tr>\n" +
" </thead>" + " </thead>" +
@ -94,7 +94,7 @@ const getSentMessages = () => {
wiadomoscRow.appendChild(temat) wiadomoscRow.appendChild(temat)
nadawca = wiadomoscRow.insertCell() nadawca = wiadomoscRow.insertCell()
nadawca.innerHTML = `<span>${wiadomosc.Nadawca.Name}</span>` nadawca.innerHTML = `<span>${wiadomosc.Adresaci[0]}</span>`
wiadomoscRow.appendChild(nadawca) wiadomoscRow.appendChild(nadawca)
@ -159,4 +159,4 @@ const getDeletedMessages = () => {
received_.addEventListener('click', getReceivedMessages); received_.addEventListener('click', getReceivedMessages);
sent_.addEventListener('click', getSentMessages); sent_.addEventListener('click', getSentMessages);
deleted_.addEventListener('click', getDeletedMessages); deleted_.addEventListener('click', getDeletedMessages);