mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
Fix: TrueNAS Core support for pool stats (#3206)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
268d8efa0e
commit
4e69ea6088
5 changed files with 27 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue