mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add support for QNAP instances with multiple volumes (#1528)
* Add support for pfSense API * Fix linting issues * remove a line * rename cpu to load in default block * Re-order container blocks to ensure defaults show * clean up * Add support for multiple volumes as well as defining the volume you want to track * QNAP widget syntax corrections, translate invalid --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -306,7 +306,7 @@ export function cleanServiceGroups(groups) {
|
||||
if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks);
|
||||
if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = JSON.parse(enableNowPlaying);
|
||||
}
|
||||
if (type === "diskstation") {
|
||||
if (["diskstation", "qnap"].includes(type)) {
|
||||
if (volume) cleanedService.widget.volume = volume;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user