Update enableLeechProgress flag for deluge and qbit
This commit is contained in:
parent
6b2a3da7ee
commit
b17db643fd
@ -402,6 +402,9 @@ export function cleanServiceGroups(groups) {
|
|||||||
mappings,
|
mappings,
|
||||||
display,
|
display,
|
||||||
|
|
||||||
|
// deluge, qbittorrent
|
||||||
|
enableLeechProgress,
|
||||||
|
|
||||||
// diskstation
|
// diskstation
|
||||||
volume,
|
volume,
|
||||||
|
|
||||||
@ -479,9 +482,6 @@ export function cleanServiceGroups(groups) {
|
|||||||
// proxmox
|
// proxmox
|
||||||
node,
|
node,
|
||||||
|
|
||||||
// qbittorrent
|
|
||||||
enableLeechProgress,
|
|
||||||
|
|
||||||
// speedtest
|
// speedtest
|
||||||
bitratePrecision,
|
bitratePrecision,
|
||||||
|
|
||||||
@ -572,6 +572,9 @@ export function cleanServiceGroups(groups) {
|
|||||||
if (allowScrolling) widget.allowScrolling = allowScrolling;
|
if (allowScrolling) widget.allowScrolling = allowScrolling;
|
||||||
if (refreshInterval) widget.refreshInterval = refreshInterval;
|
if (refreshInterval) widget.refreshInterval = refreshInterval;
|
||||||
}
|
}
|
||||||
|
if (["deluge", "qbittorrent"].includes(type)) {
|
||||||
|
if (enableLeechProgress !== undefined) widget.enableLeechProgress = JSON.parse(enableLeechProgress);
|
||||||
|
}
|
||||||
if (["opnsense", "pfsense"].includes(type)) {
|
if (["opnsense", "pfsense"].includes(type)) {
|
||||||
if (wan) widget.wan = wan;
|
if (wan) widget.wan = wan;
|
||||||
}
|
}
|
||||||
@ -674,9 +677,6 @@ export function cleanServiceGroups(groups) {
|
|||||||
if (type === "spoolman") {
|
if (type === "spoolman") {
|
||||||
if (spoolIds !== undefined) widget.spoolIds = spoolIds;
|
if (spoolIds !== undefined) widget.spoolIds = spoolIds;
|
||||||
}
|
}
|
||||||
if (type === "qbittorrent") {
|
|
||||||
if (enableLeechProgress !== undefined) widget.enableLeechProgress = JSON.parse(enableLeechProgress);
|
|
||||||
}
|
|
||||||
return widget;
|
return widget;
|
||||||
});
|
});
|
||||||
return cleanedService;
|
return cleanedService;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user