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:
@@ -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 || '—');
|
||||
|
||||
Reference in New Issue
Block a user