Feature: stock market service and info widget (#3617)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
1 parent
810c321881
commit
231e2408c3
14 files changed
+424
-1
No files matched your search
@@ -457,6 +457,10 @@ export function cleanServiceGroups(groups) {
|
||||
// sonarr, radarr
|
||||
enableQueue,
|
||||
|
||||
// stocks
|
||||
watchlist,
|
||||
showUSMarketStatus,
|
||||
|
||||
// truenas
|
||||
enablePools,
|
||||
nasType,
|
||||
@@ -600,6 +604,10 @@ export function cleanServiceGroups(groups) {
|
||||
cleanedService.widget.bitratePrecision = parseInt(bitratePrecision, 10);
|
||||
}
|
||||
}
|
||||
if (type === "stocks") {
|
||||
if (watchlist) cleanedService.widget.watchlist = watchlist;
|
||||
if (showUSMarketStatus) cleanedService.widget.showUSMarketStatus = showUSMarketStatus;
|
||||
}
|
||||
if (type === "wgeasy") {
|
||||
if (threshold !== undefined) cleanedService.widget.threshold = parseInt(threshold, 10);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user