From: Rani Hod Date: Thu, 13 Apr 2023 08:45:03 +0000 (+0300) Subject: luci-mod-dashboard: hide wireless pane when there are no radios X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b5836cd8252866a5d8993511bcd920b2bd3afe06;p=project%2Fluci.git luci-mod-dashboard: hide wireless pane when there are no radios Implements feature request #4472. Signed-off-by: Rani Hod --- 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([]); } });