Feature: Support pi-hole v6 (#3207)

This commit is contained in:
shamoon 2024-03-31 20:34:46 -07:00 committed by GitHub
parent b0d57866a0
commit 29ac7bfea7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 107 additions and 13 deletions

View file

@ -393,8 +393,10 @@ export function cleanServiceGroups(groups) {
enableBlocks,
enableNowPlaying,
// glances
// glances, pihole
version,
// glances
chart,
metric,
pointsLimit,
@ -528,8 +530,10 @@ export function cleanServiceGroups(groups) {
if (snapshotHost) cleanedService.widget.snapshotHost = snapshotHost;
if (snapshotPath) cleanedService.widget.snapshotPath = snapshotPath;
}
if (type === "glances") {
if (["glances", "pihole"].includes(type)) {
if (version) cleanedService.widget.version = version;
}
if (type === "glances") {
if (metric) cleanedService.widget.metric = metric;
if (chart !== undefined) {
cleanedService.widget.chart = chart;