summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-29 14:17:55 +0200
committerJo-Philipp Wich <jo@mein.io>2020-03-29 14:17:55 +0200
commit3d965195928b993f7e2dacebd4e296a547b32552 (patch)
treedeb7b1d084712bdc6b2c53033fca8766b22c646f /applications/luci-app-statistics/htdocs/luci-static/resources
parentcfe6771846c3843951b2b41074d072df012dccd2 (diff)
luci-app-statistics: minor bugfixes in IRQ and OpenVPN plugin config
- Fix cfgvalue loading in IRQ selection - Fix cfgbalue loading in OpenVPN status file selection - Fix typo in OpenVPN config translation string Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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/irq.js2
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js6
2 files changed, 6 insertions, 2 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/irq.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/irq.js
index f6bac08723..0061c4dfd4 100644
--- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/irq.js
+++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/irq.js
@@ -36,6 +36,8 @@ return L.Class.extend({
this.value(m[1], '%s (%s)'.format(m[1], desc || '-'));
}
+
+ return this.super('load', [section_id]);
}, this));
};
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js
index b3e4f19331..b0704fc722 100644
--- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js
+++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js
@@ -29,7 +29,9 @@ return L.Class.extend({
return L.resolveDefault(fs.list('/var/run'), []).then(L.bind(function(entries) {
for (var i = 0; i < entries.length; i++)
if (entries[i].type == 'file' && entries[i].name.match(/^openvpn\..+\.status$/))
- o.value('/var/run/' + entries[i].name);
+ this.value('/var/run/' + entries[i].name);
+
+ return this.super('load', [section_id]);
}, this));
};
},
@@ -38,6 +40,6 @@ return L.Class.extend({
var stats = L.toArray(section.StatusFile);
if (stats.length)
- return N_(stats.length, 'Monitoring one OpenVPN instance', 'Monitoring %d OpenVPN instancees').format(stats.length);
+ return N_(stats.length, 'Monitoring one OpenVPN instance', 'Monitoring %d OpenVPN instances').format(stats.length);
}
});