Default sort: AP list by Name, client popup by IP

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-27 16:22:52 +02:00
parent d61347e998
commit d7d2af7b9b

View File

@@ -328,8 +328,8 @@
});
});
// Sort by IP on initial load
document.querySelector('[data-sort="ip"]')?.click();
// Sort by Name on initial load
document.querySelector('[data-sort="name"]')?.click();
// ── IP range filter button ─────────────────────────────────────────────────
const btnIpFilter = document.getElementById('btn-ip-filter');
@@ -610,6 +610,8 @@
clientsSubtitle.textContent = `${clients.length} device${clients.length !== 1 ? 's' : ''} connected`;
clients.sort((a, b) => ipToNum(a.ip) - ipToNum(b.ip));
const rows = clients.map(c => {
const displayName = esc(c.name || c.hostName || c.hostname || '');
const mac = esc(c.mac || '—');