Enhancement: Add enablePools option to TrueNAS service widget (#2908)

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Derek Stotz 2024-02-15 23:38:55 -06:00 committed by GitHub
parent a251c34059
commit 0d47dcaac7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 77 additions and 35 deletions

View file

@ -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;
}