mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 23:08:48 +00:00
Feature: Wg-Easy Widget (#3476)
--------- Co-authored-by: ConnerWithAnE <46903591+ConnerWithAnE@users.noreply.github.com> Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
1144f4dfa0
commit
6ab6d6fd3a
8 changed files with 158 additions and 0 deletions
|
@ -462,6 +462,9 @@ export function cleanServiceGroups(groups) {
|
|||
|
||||
// unifi
|
||||
site,
|
||||
|
||||
// wgeasy
|
||||
threshold,
|
||||
} = cleanedService.widget;
|
||||
|
||||
let fieldsList = fields;
|
||||
|
@ -596,6 +599,9 @@ export function cleanServiceGroups(groups) {
|
|||
cleanedService.widget.bitratePrecision = parseInt(bitratePrecision, 10);
|
||||
}
|
||||
}
|
||||
if (type === "wgeasy") {
|
||||
if (threshold !== undefined) cleanedService.widget.threshold = parseInt(threshold, 10);
|
||||
}
|
||||
}
|
||||
|
||||
return cleanedService;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue