diff options
author | Miguel Angel Mulero Martinez <migmul@gmail.com> | 2024-02-13 12:25:48 +0100 |
---|---|---|
committer | Paul Donald <itsascambutmailmeanyway@gmail.com> | 2024-02-13 19:23:59 +0100 |
commit | ac8cf93a015a3eeb960ef216e59dde643bf059ed (patch) | |
tree | eccf6ca2a7394774d3d2653142153767f1430259 /applications/luci-app-usteer | |
parent | 81f1f9d26754d0646d513ae56798395285e314c8 (diff) |
luci-app-usteer: Fix no wireless defined setup
Some users use the usteer app in a "non wireless" device. With the current code it crashes because there is no SSID defined. Making the ui element a DynamicList fixes the issue because it allows free text input.
Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
Diffstat (limited to 'applications/luci-app-usteer')
-rw-r--r-- | applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js | 2 |
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 ce245a4dc7..5cbc8c7a40 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 @@ -609,7 +609,7 @@ return view.extend({ o.optional = true; o.datatype = 'list(string)'; - o = s.taboption('settings', form.MultiValue, 'ssid_list', _('SSID list'), _('List of SSIDs to enable steering on')); + o = s.taboption('settings', form.DynamicList, 'ssid_list', _('SSID list'), _('List of SSIDs to enable steering on')); WifiNetworks.forEach(function (wifiNetwork) { if (wifiNetwork.getSSID()) { o.value(wifiNetwork.getSSID()) |