mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-14 22:21:19 -07:00
Refactor widget and component, create simple functions to filter tasks data, add flag to enable Task List (WIP)
This commit is contained in:
@@ -478,6 +478,9 @@ export function cleanServiceGroups(groups) {
|
||||
// unifi
|
||||
site,
|
||||
|
||||
// vikunja
|
||||
enableTaskList,
|
||||
|
||||
// wgeasy
|
||||
threshold,
|
||||
|
||||
@@ -633,6 +636,9 @@ export function cleanServiceGroups(groups) {
|
||||
if (type === "lubelogger") {
|
||||
if (vehicleID !== undefined) cleanedService.widget.vehicleID = parseInt(vehicleID, 10);
|
||||
}
|
||||
if (type === "vikunja") {
|
||||
if (enableTaskList !== undefined) cleanedService.widget.enableTaskList = enableTaskList;
|
||||
}
|
||||
}
|
||||
|
||||
return cleanedService;
|
||||
|
||||
Reference in New Issue
Block a user