Changed service/periodicity map href when clicking the host

This commit is contained in:
MatteoBiscosi 2021-08-06 17:22:08 +02:00
parent 95feea29b4
commit 14143d7690
2 changed files with 14 additions and 3 deletions

View file

@ -47,9 +47,13 @@ function macAddIcon(mac, pre)
return pre
end
function mac2link(mac, cached_name)
function mac2link(mac, cached_name, alt_name)
local macaddress = mac["mac"]
if alt_name and not isEmptyString(alt_name) then
macaddress = alt_name
end
if cached_name then
macaddress = mac2label(macaddress)
end