From 9c1f8aa784e16e23a07002b5bdaa691c98d87c36 Mon Sep 17 00:00:00 2001 From: Joe White Date: Tue, 9 Mar 2021 16:13:29 -0500 Subject: [PATCH] Ensure dashboard is updated whenever reports change. Previously the daashboard was only updated when a report was deleted. This change moves the request_refresh call to the callback for the report generator report store. This ensures that whenever the store is updated (chart add, deletes and edits) then the dashboard will be updated. Tested manually by adding, renaming and deleting reports and switching back to the dashboard to confirm that it reloads. I also confirmed that the dashboard does NOT reload when you just view a report and don't edit it. --- html/gui/js/report_builder/ReportsOverview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/gui/js/report_builder/ReportsOverview.js b/html/gui/js/report_builder/ReportsOverview.js index 0426fd3204..161fe74c3c 100644 --- a/html/gui/js/report_builder/ReportsOverview.js +++ b/html/gui/js/report_builder/ReportsOverview.js @@ -112,6 +112,7 @@ XDMoD.ReportsOverview = Ext.extend(Ext.Panel, { } + CCR.xdmod.ui.tgSummaryViewer.fireEvent('request_refresh'); }); var updateReportCountText = function() { @@ -377,7 +378,6 @@ XDMoD.ReportsOverview = Ext.extend(Ext.Panel, { } });//conn.request - CCR.xdmod.ui.tgSummaryViewer.fireEvent('request_refresh'); }//if (resp == 'yes') else {