1
0
mirror of https://github.com/glanceapp/glance.git synced 2025-07-05 09:10:09 +02:00

Merge pull request from ralphocdol/dns-stats-pihole-default-title-url

make title-url of pihole and pihole-v6 default to /admin
This commit is contained in:
Svilen Markov
2025-03-18 13:13:46 +00:00
committed by GitHub

@ -61,9 +61,15 @@ func makeDNSWidgetTimeLabels(format string) [8]string {
}
func (widget *dnsStatsWidget) initialize() error {
titleURL := strings.TrimRight(widget.URL, "/")
switch widget.Service {
case dnsServicePihole, dnsServicePiholeV6:
titleURL = titleURL + "/admin"
}
widget.
withTitle("DNS Stats").
withTitleURL(string(widget.URL)).
withTitleURL(titleURL).
withCacheDuration(10 * time.Minute)
switch widget.Service {