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:
Ansuel Smith 2020-12-05 23:16:57 +01:00
parent 48d6b6ed12
commit 277ffef8ae
No known key found for this signature in database
GPG key ID: AC001D09ADBFEAD7

View 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') {