summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJames Haggerty <james.haggerty@morsemicro.com>2024-10-24 12:17:21 +1100
committerPaul Donald <newtwen+github@gmail.com>2024-10-24 15:05:25 +0200
commit4d75286519015f19e3878008b21fb7342ca5fae3 (patch)
tree4811f1f2a9945aa4a0edd6394e8bf3191e024f61 /applications/luci-app-statistics/htdocs/luci-static/resources
parentfb8ce8fccac80e87f01078041939e0a66ae5013b (diff)
luci-app-statistics: render all graphs on refresh if no summary
Previously, if there would usually be a summary page for the data but this was not happening because there was only a single instance (e.g. a single wifi interface), the refresh would mistakenly request the summary rather than the existing data. i.e. graphs would mysteriously disappear on refresh. Signed-off-by: James Haggerty <james.haggerty@morsemicro.com>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js
index 4ac81ff826..479dcbcbbc 100644
--- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js
+++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js
@@ -74,7 +74,7 @@ return view.extend({
'data-tab-title': multiple ? title : null,
'data-plugin': plugin,
'data-plugin-instance': plugin_instance,
- 'data-is-index': i ? null : true,
+ 'data-is-index': i || render_instances.length == 1 ? null : true,
'cbi-tab-active': function(ev) { activeInstance = ev.target.getAttribute('data-plugin-instance') }
}, blobs.map(function(blob) {
return E('img', {