mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
Make instant controls store state in URL (#4449)
* Add to history on instant control change * Update latestQueryFormData on render triggered * Add new message type * Update latestQueryFormData in UPDATE_QUERY_FORM_DATA
This commit is contained in:
committed by
Maxime Beauchemin
parent
d4a2f4ef36
commit
c3176579e0
@@ -47,7 +47,6 @@ export default function chartReducer(charts = {}, action) {
|
||||
chartUpdateEndTime: null,
|
||||
chartUpdateStartTime: now(),
|
||||
queryRequest: action.queryRequest,
|
||||
latestQueryFormData: action.latestQueryFormData,
|
||||
};
|
||||
},
|
||||
[actions.CHART_UPDATE_STOPPED](state) {
|
||||
@@ -93,6 +92,9 @@ export default function chartReducer(charts = {}, action) {
|
||||
[actions.RENDER_TRIGGERED](state) {
|
||||
return { ...state, lastRendered: action.value };
|
||||
},
|
||||
[actions.UPDATE_QUERY_FORM_DATA](state) {
|
||||
return { ...state, latestQueryFormData: action.value };
|
||||
},
|
||||
[actions.ANNOTATION_QUERY_STARTED](state) {
|
||||
if (state.annotationQuery &&
|
||||
state.annotationQuery[action.annotation.name]) {
|
||||
|
||||
Reference in New Issue
Block a user