summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-usteer/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorMiguel Angel Mulero Martinez <migmul@gmail.com>2024-02-14 08:03:43 +0100
committerPaul Donald <itsascambutmailmeanyway@gmail.com>2024-02-15 19:45:38 +0100
commit2841d28396984431f3cf313cf0fbf381441ec40e (patch)
treeaf8dd2c699a0e55dad06118140464ed79318302c /applications/luci-app-usteer/htdocs/luci-static/resources/view
parent1635bbfad4acefa18d20fe372e45c6ef747b33e1 (diff)
luci-app-usteer: filter repeated SSIDs in config
When the SSID name was the same in different radio, they appear repeated in the options. This commit filter them. Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
Diffstat (limited to 'applications/luci-app-usteer/htdocs/luci-static/resources/view')
-rw-r--r--applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js b/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js
index 5cbc8c7a40..daa5ec64df 100644
--- a/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js
+++ b/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js
@@ -611,7 +611,7 @@ return view.extend({
o = s.taboption('settings', form.DynamicList, 'ssid_list', _('SSID list'), _('List of SSIDs to enable steering on'));
WifiNetworks.forEach(function (wifiNetwork) {
- if (wifiNetwork.getSSID()) {
+ if (wifiNetwork.getSSID() && (!o.keylist || o.keylist.indexOf(wifiNetwork.getSSID()) === -1)) {
o.value(wifiNetwork.getSSID())
}
});