From b64270bfafdf088d01b5d642042bc1f35a74ba03 Mon Sep 17 00:00:00 2001 From: Grace Date: Fri, 27 Mar 2020 23:39:49 -0700 Subject: [PATCH] [fix] allow force refresh for No Results chart --- superset-frontend/src/chart/chartReducer.js | 1 + .../src/dashboard/components/SliceHeaderControls.jsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/chart/chartReducer.js b/superset-frontend/src/chart/chartReducer.js index 8ac7f1aefdc20..1409623dabae5 100644 --- a/superset-frontend/src/chart/chartReducer.js +++ b/superset-frontend/src/chart/chartReducer.js @@ -49,6 +49,7 @@ export default function chartReducer(charts = {}, action) { chartStatus: 'success', queryResponse: action.queryResponse, chartAlert: null, + chartUpdateEndTime: now(), }; }, [actions.CHART_UPDATE_STARTED](state) { diff --git a/superset-frontend/src/dashboard/components/SliceHeaderControls.jsx b/superset-frontend/src/dashboard/components/SliceHeaderControls.jsx index 6bd50610cf254..80cdd99e5857a 100644 --- a/superset-frontend/src/dashboard/components/SliceHeaderControls.jsx +++ b/superset-frontend/src/dashboard/components/SliceHeaderControls.jsx @@ -133,7 +133,10 @@ class SliceHeaderControls extends React.PureComponent { - + {t('Force refresh')}
{refreshTooltip}