luci-mod-status: cosmetic fix for isWPSEnabled in wifi status
Drop isWPSEnabled table as it's really not needed and can directly included in the network table. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
parent
584301a902
commit
2a97d5533c
1 changed files with 2 additions and 4 deletions
|
@ -121,7 +121,7 @@ return baseclass.extend({
|
||||||
|
|
||||||
var WPS_button = null;
|
var WPS_button = null;
|
||||||
|
|
||||||
if (this.isWPSEnabled[net.sid]) {
|
if (net.isWPSEnabled) {
|
||||||
if (net.wps_status == 'Active') {
|
if (net.wps_status == 'Active') {
|
||||||
WPS_button = E('button', {
|
WPS_button = E('button', {
|
||||||
'class' : 'cbi-button cbi-button-remove',
|
'class' : 'cbi-button cbi-button-remove',
|
||||||
|
@ -190,7 +190,7 @@ return baseclass.extend({
|
||||||
}, this, radios_networks_hints[i])));
|
}, this, radios_networks_hints[i])));
|
||||||
|
|
||||||
if (hasWPS && uci.get('wireless', radios_networks_hints[i].sid, 'wps_pushbutton') == '1') {
|
if (hasWPS && uci.get('wireless', radios_networks_hints[i].sid, 'wps_pushbutton') == '1') {
|
||||||
this.isWPSEnabled[radios_networks_hints[i].sid] = true;
|
radios_networks_hints[i].isWPSEnabled = true;
|
||||||
tasks.push(L.resolveDefault(this.handleGetWPSStatus(radios_networks_hints[i].getIfname()), null)
|
tasks.push(L.resolveDefault(this.handleGetWPSStatus(radios_networks_hints[i].getIfname()), null)
|
||||||
.then(L.bind(function(net, data) {
|
.then(L.bind(function(net, data) {
|
||||||
net.wps_status = data ? data.pbc_status : _('No Data');
|
net.wps_status = data ? data.pbc_status : _('No Data');
|
||||||
|
@ -204,8 +204,6 @@ return baseclass.extend({
|
||||||
}, this));
|
}, this));
|
||||||
},
|
},
|
||||||
|
|
||||||
isDeviceAdded: {},
|
|
||||||
|
|
||||||
render: function(data) {
|
render: function(data) {
|
||||||
var seen = {},
|
var seen = {},
|
||||||
radios = data[0],
|
radios = data[0],
|
||||||
|
|
Loading…
Reference in a new issue