From 672fd9df36d4e6730a8d20999a6e278c3a858545 Mon Sep 17 00:00:00 2001 From: Rani Hod Date: Thu, 13 Apr 2023 11:45:03 +0300 Subject: [PATCH] luci-mod-dashboard: hide wireless pane when there are no radios Implements feature request #4472. Signed-off-by: Rani Hod (cherry picked from commit b5836cd8252866a5d8993511bcd920b2bd3afe06) --- .../luci-static/resources/view/dashboard/include/30_wifi.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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([]); } }); -- 2.30.2