summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2021-02-05 21:27:14 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2021-02-05 21:27:14 +0200
commit5da8a0d23feee86baa129ef64b2f2d965cb593fe (patch)
tree643f0a9fa3d5682c7dbef8bc1da7b5f6beb73be5 /applications/luci-app-statistics/htdocs/luci-static/resources
parent55c0c1b476a80436e10973980101af25e1de5710 (diff)
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 <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js7
1 files changed, 2 insertions, 5 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');
}
});