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:
parent
55c0c1b476
commit
5da8a0d23f
2 changed files with 8 additions and 6 deletions
|
@ -7,10 +7,7 @@ return baseclass.extend({
|
||||||
title: _('IP-Statistics Plugin Configuration'),
|
title: _('IP-Statistics Plugin Configuration'),
|
||||||
description: _('The ipstatistics plugin collects IPv4 and IPv6 statistics to compare them.'),
|
description: _('The ipstatistics plugin collects IPv4 and IPv6 statistics to compare them.'),
|
||||||
|
|
||||||
addFormOptions: function(s) {
|
configSummary: function(section) {
|
||||||
var o;
|
return _('IPv4/IPv6 Statistics monitoring enabled');
|
||||||
|
|
||||||
o = s.option(form.Flag, 'enable', _('Enable this plugin'));
|
|
||||||
o.default = '0';
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{
|
{
|
||||||
"title": "IP-Statistics",
|
"title": "IP-Statistics",
|
||||||
"category": "network"
|
"category": "network",
|
||||||
|
"legend": [
|
||||||
|
[],
|
||||||
|
[],
|
||||||
|
[]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue