mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
Dashboard refactory (#3581)
Create Chart component for all chart fetching and rendering, and apply redux architecture in dashboard view.
This commit is contained in:
@@ -56,11 +56,6 @@ export default function exploreReducer(state = {}, action) {
|
||||
}
|
||||
return Object.assign({}, state, changes);
|
||||
},
|
||||
[actions.TRIGGER_QUERY]() {
|
||||
return Object.assign({}, state, {
|
||||
triggerQuery: action.value,
|
||||
});
|
||||
},
|
||||
[actions.UPDATE_CHART_TITLE]() {
|
||||
const updatedSlice = Object.assign({}, state.slice, { slice_name: action.slice_name });
|
||||
return Object.assign({}, state, { slice: updatedSlice });
|
||||
@@ -69,9 +64,6 @@ export default function exploreReducer(state = {}, action) {
|
||||
const controls = getControlsState(state, getFormDataFromControls(state.controls));
|
||||
return Object.assign({}, state, { controls });
|
||||
},
|
||||
[actions.RENDER_TRIGGERED]() {
|
||||
return Object.assign({}, state, { triggerRender: false });
|
||||
},
|
||||
[actions.CREATE_NEW_SLICE]() {
|
||||
return Object.assign({}, state, {
|
||||
slice: action.slice,
|
||||
|
||||
Reference in New Issue
Block a user