mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Enhancement: Add enablePools option to TrueNAS service widget (#2908)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
a251c34059
commit
0d47dcaac7
6 changed files with 77 additions and 35 deletions
|
@ -442,6 +442,9 @@ export function cleanServiceGroups(groups) {
|
|||
// sonarr, radarr
|
||||
enableQueue,
|
||||
|
||||
// truenas
|
||||
enablePools,
|
||||
|
||||
// unifi
|
||||
site,
|
||||
} = cleanedService.widget;
|
||||
|
@ -511,6 +514,9 @@ export function cleanServiceGroups(groups) {
|
|||
if (["sonarr", "radarr"].includes(type)) {
|
||||
if (enableQueue !== undefined) cleanedService.widget.enableQueue = JSON.parse(enableQueue);
|
||||
}
|
||||
if (type === "truenas") {
|
||||
if (enablePools !== undefined) cleanedService.widget.enablePools = JSON.parse(enablePools);
|
||||
}
|
||||
if (["diskstation", "qnap"].includes(type)) {
|
||||
if (volume) cleanedService.widget.volume = volume;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue