summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard
diff options
context:
space:
mode:
authorRani Hod <rani.hod@gmail.com>2023-04-13 11:45:03 +0300
committerRani Hod <rani.hod@gmail.com>2023-04-18 17:17:38 +0300
commitb5836cd8252866a5d8993511bcd920b2bd3afe06 (patch)
tree4f5ca4430ad82001a26f7bb3916aa175ef446a87 /modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard
parentb683ff3ea2bbd49a38b12bab4225440ba3de5ff5 (diff)
luci-mod-dashboard: hide wireless pane when there are no radios
Implements feature request #4472. Signed-off-by: Rani Hod <rani.hod@gmail.com>
Diffstat (limited to 'modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard')
-rw-r--r--modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/30_wifi.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/30_wifi.js b/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/30_wifi.js
index f48622fd66..318c3abf87 100644
--- a/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/30_wifi.js
+++ b/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/30_wifi.js
@@ -262,6 +262,8 @@ return baseclass.extend({
this.renderUpdateData(data[0], data[1], data[2]);
- return this.renderHtml();
+ if (this.params.wifi.radios.length)
+ return this.renderHtml();
+ return E([]);
}
});