Merge pull request #6341 from raenye/dashboard-hide-wireless
luci-mod-dashboard: hide wireless pane when there are no radios
This commit is contained in:
commit
55e89d2d7e
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