mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-05 21:47:48 +01:00
Fix: TrueNAS Core support for pool stats (#3206)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user