mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
Allow user update slice title in visualize flow (#3466)
* 1. after user make sql query and visualize, allow user click title to update slice title, and create a new slice at the same time. 2. don't save new title if it is empty. Will still show old title. * change saveSlice call response and update explore view
This commit is contained in:
committed by
Maxime Beauchemin
parent
5718d6bbaf
commit
3949d39478
@@ -72,6 +72,15 @@ export default function exploreReducer(state = {}, action) {
|
||||
[actions.RENDER_TRIGGERED]() {
|
||||
return Object.assign({}, state, { triggerRender: false });
|
||||
},
|
||||
[actions.CREATE_NEW_SLICE]() {
|
||||
return Object.assign({}, state, {
|
||||
slice: action.slice,
|
||||
controls: getControlsState(state, action.form_data),
|
||||
can_add: action.can_add,
|
||||
can_download: action.can_download,
|
||||
can_overwrite: action.can_overwrite,
|
||||
});
|
||||
},
|
||||
};
|
||||
if (action.type in actionHandlers) {
|
||||
return actionHandlers[action.type]();
|
||||
|
||||
Reference in New Issue
Block a user