mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
Show the upstream server IP on the title tooltip
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user