From 5da8a0d23feee86baa129ef64b2f2d965cb593fe Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Fri, 5 Feb 2021 21:27:14 +0200 Subject: [PATCH] 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 --- .../resources/view/statistics/plugins/ipstatistics.js | 7 ++----- .../usr/share/luci/statistics/plugins/ipstatistics.json | 7 ++++++- 2 files changed, 8 insertions(+), 6 deletions(-) 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'); } }); diff --git a/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/ipstatistics.json b/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/ipstatistics.json index a13f14aea9..097c4204ab 100644 --- a/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/ipstatistics.json +++ b/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/ipstatistics.json @@ -1,4 +1,9 @@ { "title": "IP-Statistics", - "category": "network" + "category": "network", + "legend": [ + [], + [], + [] + ] } -- 2.30.2