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>
This commit is contained in:
Hannu Nyman 2021-02-05 21:27:14 +02:00
parent 55c0c1b476
commit 5da8a0d23f
2 changed files with 8 additions and 6 deletions

View file

@ -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');
}
});

View file

@ -1,4 +1,9 @@
{
"title": "IP-Statistics",
"category": "network"
"category": "network",
"legend": [
[],
[],
[]
]
}