Merge pull request #1676 from markwalet/improve-proxmox

Improve proxmox
This commit is contained in:
shamoon
2023-07-20 06:12:40 -07:00
committed by GitHub
2 changed files with 27 additions and 11 deletions

View File

@@ -290,6 +290,7 @@ export function cleanServiceGroups(groups) {
enableNowPlaying,
volume, // diskstation widget,
enableQueue, // sonarr/radarr
node, // Proxmox
} = cleanedService.widget;
let fieldsList = fields;
@@ -300,7 +301,7 @@ export function cleanServiceGroups(groups) {
fieldsList = null;
}
}
cleanedService.widget = {
type,
fields: fieldsList || null,
@@ -323,6 +324,9 @@ export function cleanServiceGroups(groups) {
if (type === "unifi") {
if (site) cleanedService.widget.site = site;
}
if (type === "proxmox") {
if (node) cleanedService.widget.node = node;
}
if (type === "kubernetes") {
if (namespace) cleanedService.widget.namespace = namespace;
if (app) cleanedService.widget.app = app;