From 3d965195928b993f7e2dacebd4e296a547b32552 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 29 Mar 2020 14:17:55 +0200 Subject: 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 --- .../htdocs/luci-static/resources/view/statistics/plugins/irq.js | 2 ++ .../htdocs/luci-static/resources/view/statistics/plugins/openvpn.js | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/view') 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); } }); -- cgit v1.2.3