diff options
author | Florian Eckert <fe@dev.tdt.de> | 2019-03-07 14:50:17 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2019-03-07 15:16:55 +0100 |
commit | cd1e8cc6b94ef9aed2199d69f54c94d0c0919605 (patch) | |
tree | 0d2c4a6808ce09e51489153f865e39c0b7defa00 /applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua | |
parent | 82c2a97314e5a569042056233475d1f97c1278ad (diff) |
luci-app-statistics: add new item callback for menu entry
Add the item callback function to the rrdtool definitions.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua index 37055f5861..637b5f9592 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua @@ -3,6 +3,10 @@ module("luci.statistics.rrdtool.definitions.apcups",package.seeall) +function item() + return luci.i18n.translate("APC UPS") +end + function rrdargs( graph, plugin, plugin_instance ) local lu = require("luci.util") |