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:
Conner Hnatiuk 2024-05-16 23:26:12 -06:00 committed by GitHub
parent 1144f4dfa0
commit 6ab6d6fd3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 158 additions and 0 deletions

View file

@ -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;