fix: show BSSID and sources in recon association tooltip
This commit is contained in:
@@ -996,8 +996,13 @@ function associationSummary(associations) {
|
||||
|
||||
function associationCell(associations) {
|
||||
const summary = associationSummary(associations);
|
||||
const full = (associations || []).map((a) => a && a.ssid).filter(Boolean)
|
||||
.filter((ssid, i, all) => all.indexOf(ssid) === i).join(', ');
|
||||
const full = (associations || []).map((a) => {
|
||||
if (!a || !a.ssid) return null;
|
||||
const parts = [a.ssid];
|
||||
if (a.bssid) parts.push(a.bssid);
|
||||
if (a.sources && a.sources.length) parts.push('[' + a.sources.join(', ') + ']');
|
||||
return parts.join(' ');
|
||||
}).filter(Boolean).join('; ');
|
||||
return h('span', { title: full || summary, text: summary });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user