mirror of
https://github.com/benphelps/homepage.git
synced 2025-12-20 18:09:42 +01:00
Improve proxmox widget
This commit is contained in:
@@ -289,6 +289,7 @@ export function cleanServiceGroups(groups) {
|
||||
enableNowPlaying,
|
||||
volume, // diskstation widget,
|
||||
enableQueue, // sonarr/radarr
|
||||
node, // Proxmox
|
||||
} = cleanedService.widget;
|
||||
|
||||
let fieldsList = fields;
|
||||
@@ -299,7 +300,7 @@ export function cleanServiceGroups(groups) {
|
||||
fieldsList = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
cleanedService.widget = {
|
||||
type,
|
||||
fields: fieldsList || null,
|
||||
@@ -319,6 +320,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;
|
||||
|
||||
Reference in New Issue
Block a user