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