From 5da8a0d23feee86baa129ef64b2f2d965cb593fe Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Fri, 5 Feb 2021 21:27:14 +0200 Subject: luci-app-statistics: Fix ipstatistics plugin (fix 6ae138c2) Fix the newly added ipstatistics plugin * add config definition * add configSummary * remove unnecessary option config form (no plugin-specific options) Signed-off-by: Hannu Nyman --- .../luci-static/resources/view/statistics/plugins/ipstatistics.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources') diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js index 37f98100f1..1a41a284f3 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js @@ -7,10 +7,7 @@ return baseclass.extend({ title: _('IP-Statistics Plugin Configuration'), description: _('The ipstatistics plugin collects IPv4 and IPv6 statistics to compare them.'), - addFormOptions: function(s) { - var o; - - o = s.option(form.Flag, 'enable', _('Enable this plugin')); - o.default = '0'; + configSummary: function(section) { + return _('IPv4/IPv6 Statistics monitoring enabled'); } }); -- cgit v1.2.3