From cd1e8cc6b94ef9aed2199d69f54c94d0c0919605 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 7 Mar 2019 14:50:17 +0100 Subject: luci-app-statistics: add new item callback for menu entry Add the item callback function to the rrdtool definitions. Signed-off-by: Florian Eckert --- .../luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua') diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua index dd93196902..84ca4951f9 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua @@ -2,6 +2,10 @@ module("luci.statistics.rrdtool.definitions.nut",package.seeall) +function item() + return luci.i18n.translate("UPS") +end + function rrdargs( graph, plugin, plugin_instance, dtype ) local voltages = { -- cgit v1.2.3