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 <ansuelsmth@gmail.com>
This commit is contained in:
parent
48d6b6ed12
commit
277ffef8ae
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ return baseclass.extend({
|
||||||
else
|
else
|
||||||
icon = L.resource('icons/signal-75-100.png');
|
icon = L.resource('icons/signal-75-100.png');
|
||||||
|
|
||||||
var WPS_button;
|
var WPS_button = null;
|
||||||
|
|
||||||
if (this.isWPSEnabled[net.sid]) {
|
if (this.isWPSEnabled[net.sid]) {
|
||||||
if (net.wps_status == 'Active') {
|
if (net.wps_status == 'Active') {
|
||||||
|
|
Loading…
Reference in a new issue