mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
Allow widget field visibility to be configurable
This commit is contained in:
parent
756f6310af
commit
9b7d6b196f
30 changed files with 246 additions and 219 deletions
|
@ -113,6 +113,7 @@ export function cleanServiceGroups(groups) {
|
|||
// whitelisted set of keys to pass to the frontend
|
||||
const {
|
||||
type, // all widgets
|
||||
fields,
|
||||
server, // docker widget
|
||||
container,
|
||||
currency, // coinmarketcap widget
|
||||
|
@ -121,6 +122,7 @@ export function cleanServiceGroups(groups) {
|
|||
|
||||
cleanedService.widget = {
|
||||
type,
|
||||
fields: fields || null,
|
||||
service_name: service.name,
|
||||
service_group: serviceGroup.name,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue