luci-mod-dashboard: hide wireless pane when there are no radios
Implements feature request #4472. Signed-off-by: Rani Hod <rani.hod@gmail.com>
This commit is contained in:
parent
b683ff3ea2
commit
b5836cd825
1 changed files with 3 additions and 1 deletions
|
@ -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([]);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue