luci-app-statistics: support graph menu entries without corresponding labels
Properly render menu items for plugin instances that do not have a corresponding label defined. This allows for registering new graph pages solely by dropping files into /usr/lib/lua/luci/statistics/rrdtool/definitions/ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
b1afc9ac3b
commit
b1d307d3f5
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ function index()
|
||||||
_entry(
|
_entry(
|
||||||
{ "admin", "statistics", "collectd", section, plugin },
|
{ "admin", "statistics", "collectd", section, plugin },
|
||||||
cbi("luci_statistics/" .. plugin ),
|
cbi("luci_statistics/" .. plugin ),
|
||||||
labels[plugin], j * 10
|
labels[plugin] or plugin, j * 10
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue