luci-mod-status: fix WPS button to wrong interface 4641/head
authorAnsuel Smith <ansuelsmth@gmail.com>
Sat, 5 Dec 2020 22:16:57 +0000 (23:16 +0100)
committerAnsuel Smith <ansuelsmth@gmail.com>
Sat, 5 Dec 2020 22:16:57 +0000 (23:16 +0100)
Reset the WPS_button variable to correctly add the button to the enabled interface.

Fixes: #4625
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js

index f057f8512ac1b52483b59054ba1068d11d785682..9a956a72fefab5682fb066e82ef77834125d3a84 100644 (file)
@@ -119,7 +119,7 @@ return baseclass.extend({
                        else
                                icon = L.resource('icons/signal-75-100.png');
 
-                       var WPS_button;
+                       var WPS_button = null;
 
                        if (this.isWPSEnabled[net.sid]) {
                                if (net.wps_status == 'Active') {