summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2021-09-18 16:17:27 +0200
committerAnsuel Smith <ansuelsmth@gmail.com>2021-09-18 16:17:27 +0200
commit2a97d5533cba419f51da0b550b00a34bc9f50cce (patch)
tree904e82f27291cf4aab612995e2f00e7f9c2e30f9 /modules/luci-mod-status/htdocs/luci-static/resources/view
parent584301a9022b79482af55cbcf6b9f54136400bf1 (diff)
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>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js6
1 files changed, 2 insertions, 4 deletions
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 7cb3e78e7a..b03d1f4111 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
@@ -121,7 +121,7 @@ return baseclass.extend({
var WPS_button = null;
- if (this.isWPSEnabled[net.sid]) {
+ if (net.isWPSEnabled) {
if (net.wps_status == 'Active') {
WPS_button = E('button', {
'class' : 'cbi-button cbi-button-remove',
@@ -190,7 +190,7 @@ return baseclass.extend({
}, this, radios_networks_hints[i])));
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)
.then(L.bind(function(net, data) {
net.wps_status = data ? data.pbc_status : _('No Data');
@@ -204,8 +204,6 @@ return baseclass.extend({
}, this));
},
- isDeviceAdded: {},
-
render: function(data) {
var seen = {},
radios = data[0],