mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 09:19:48 -04:00
Fix empty table display in My activity view when user has no jobs
This commit is contained in:
@@ -316,9 +316,18 @@
|
|||||||
return rowSender === currentUserName;
|
return rowSender === currentUserName;
|
||||||
});
|
});
|
||||||
|
|
||||||
userRows.slice(0, 5).forEach(row => {
|
if (userRows.length > 0) {
|
||||||
row.style.display = '';
|
userRows.slice(0, 5).forEach(row => {
|
||||||
});
|
row.style.display = '';
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
const emptyMessageRow = Array.from(allRows).find(row => {
|
||||||
|
return row.querySelector('.table-empty-message');
|
||||||
|
});
|
||||||
|
if (emptyMessageRow) {
|
||||||
|
emptyMessageRow.style.display = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
tableHeading.textContent = 'Service activity';
|
tableHeading.textContent = 'Service activity';
|
||||||
|
|||||||
Reference in New Issue
Block a user