mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
Improve proxmox widget
This commit is contained in:
parent
d75505acc8
commit
43b5263f41
2 changed files with 27 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue