Skip to content

Commit

Permalink
luci-app-statistics: render all graphs on refresh if no summary
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wryun committed Oct 24, 2024
1 parent fb8ce8f commit 5fe255d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ return view.extend({
'data-tab-title': multiple ? title : null,
'data-plugin': plugin,
'data-plugin-instance': plugin_instance,
'data-is-index': i || render_instances.length == 1 ? null : true,
'data-is-index': i ? null : true,
'cbi-tab-active': function(ev) { activeInstance = ev.target.getAttribute('data-plugin-instance') }
}, blobs.map(function(blob) {
Expand Down

0 comments on commit 5fe255d

Please sign in to comment.