Chore: handle mealie API change (#3895)

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
joncrangle 2024-08-25 00:02:47 -04:00 committed by GitHub
parent 8ff68dd6bf
commit b14374f660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 16 deletions

View file

@ -402,7 +402,7 @@ export function cleanServiceGroups(groups) {
// frigate
enableRecentEvents,
// glances, pihole, pfsense
// glances, mealie, pihole, pfsense
version,
// glances
@ -512,9 +512,6 @@ export function cleanServiceGroups(groups) {
if (type === "unifi") {
if (site) cleanedService.widget.site = site;
}
if (type === "pfsense") {
if (version) cleanedService.widget.version = version;
}
if (type === "proxmox") {
if (node) cleanedService.widget.node = node;
}
@ -561,7 +558,7 @@ export function cleanServiceGroups(groups) {
if (snapshotHost) cleanedService.widget.snapshotHost = snapshotHost;
if (snapshotPath) cleanedService.widget.snapshotPath = snapshotPath;
}
if (["glances", "pihole"].includes(type)) {
if (["glances", "mealie", "pfsense", "pihole"].includes(type)) {
if (version) cleanedService.widget.version = version;
}
if (type === "glances") {