mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-25 11:40:58 -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;
|
||||
});
|
||||
|
||||
userRows.slice(0, 5).forEach(row => {
|
||||
row.style.display = '';
|
||||
});
|
||||
if (userRows.length > 0) {
|
||||
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 {
|
||||
|
||||
tableHeading.textContent = 'Service activity';
|
||||
|
||||
Reference in New Issue
Block a user