From: Ansuel Smith Date: Sat, 5 Dec 2020 22:16:57 +0000 (+0100) Subject: luci-mod-status: fix WPS button to wrong interface X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=277ffef8aeddf269e7299ec2529d7063835be36e;p=project%2Fluci.git luci-mod-status: fix WPS button to wrong interface Reset the WPS_button variable to correctly add the button to the enabled interface. Fixes: #4625 Signed-off-by: Ansuel Smith --- diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js index f057f8512a..9a956a72fe 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js @@ -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') {