mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 22:48:46 +00:00
Unifi widgets support sites other than default
This commit is contained in:
parent
c2983197a0
commit
17ebdd8226
3 changed files with 6 additions and 3 deletions
|
@ -233,6 +233,7 @@ export function cleanServiceGroups(groups) {
|
|||
currency, // coinmarketcap widget
|
||||
symbols,
|
||||
defaultinterval,
|
||||
site, // unifi widget
|
||||
namespace, // kubernetes widget
|
||||
app,
|
||||
podSelector,
|
||||
|
@ -256,6 +257,9 @@ export function cleanServiceGroups(groups) {
|
|||
if (server) cleanedService.widget.server = server;
|
||||
if (container) cleanedService.widget.container = container;
|
||||
}
|
||||
if (type === "unifi") {
|
||||
if (site) cleanedService.widget.site = site;
|
||||
}
|
||||
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