Fix: TrueNAS Core support for pool stats (#3206)

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
rgon10
2024-04-01 17:32:39 -04:00
committed by GitHub
parent 268d8efa0e
commit 4e69ea6088
5 changed files with 27 additions and 3 deletions

View File

@@ -450,6 +450,7 @@ export function cleanServiceGroups(groups) {
// truenas
enablePools,
nasType,
// unifi
site,
@@ -522,6 +523,7 @@ export function cleanServiceGroups(groups) {
}
if (type === "truenas") {
if (enablePools !== undefined) cleanedService.widget.enablePools = JSON.parse(enablePools);
if (nasType !== undefined) cleanedService.widget.nasType = nasType;
}
if (["diskstation", "qnap"].includes(type)) {
if (volume) cleanedService.widget.volume = volume;