mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
Feature: Support pi-hole v6 (#3207)
This commit is contained in:
parent
b0d57866a0
commit
29ac7bfea7
5 changed files with 107 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue