Show the upstream server IP on the title tooltip

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-09-15 22:32:09 -03:00
parent 48666e1ffd
commit af471bec94

View File

@@ -99,6 +99,12 @@ globalThis.htmlLegendPlugin = {
} else {
// Encode the forward destination as it may contain an "#" character
link.href = `queries?upstream=${encodeURIComponent(upstreamIPs[item.index])}`;
// If server name and IP are different, replace the title tooltip
// including the upstream IP to the text
if (item.text !== upstreamIPs[item.index]) {
link.title = `List ${item.text} (${upstreamIPs[item.index]}) queries`;
}
}
} else {
// no clickable links in other charts