Feature: Spoolman Widget (#3959)

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Florian Geckeler 2024-11-22 00:32:04 +01:00 committed by GitHub
parent 4a3a4c846e
commit 94bbcbe1fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 105 additions and 0 deletions

View file

@ -492,6 +492,9 @@ export function cleanServiceGroups(groups) {
// technitium
range,
// spoolman
spoolIds,
} = cleanedService.widget;
let fieldsList = fields;
@ -653,6 +656,9 @@ export function cleanServiceGroups(groups) {
if (metrics) cleanedService.widget.metrics = metrics;
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
}
if (type === "spoolman") {
if (spoolIds !== undefined) cleanedService.widget.spoolIds = spoolIds;
}
}
return cleanedService;