fixed mobile modal view status

This commit is contained in:
serversdwn
2025-12-11 06:15:43 +00:00
parent 7cadd972be
commit 3aff0cb076
3 changed files with 61 additions and 2 deletions

View File

@@ -365,6 +365,17 @@
timestampMobileElement.textContent = new Date().toLocaleTimeString();
}
// Keep a lightweight status map around for the mobile modal
const rosterUnits = {{ units | tojson }};
window.rosterStatusMap = rosterUnits.reduce((acc, unit) => {
acc[unit.id] = {
status: unit.status || 'Unknown',
age: unit.age || 'N/A',
last: unit.last_seen || 'Never'
};
return acc;
}, {});
// Sorting state
let currentSort = { column: null, direction: 'asc' };