mirror of
https://github.com/apache/superset.git
synced 2026-05-12 03:15:55 +00:00
feat(explore): Replace overlay with alert banner when chart controls change (#19696)
* Rename explore alert * Rename refreshOverlayVisible to chartIsStale * Implement banners * Add tests * Add clickable text to empty state * Fix viz type switching * styling changes * Fixes after rebasing * Code review fixes * Fix bug * Fix redundant refreshing
This commit is contained in:
committed by
GitHub
parent
594523e895
commit
6f4480a06c
@@ -22,13 +22,10 @@ import { ControlStateMapping } from '@superset-ui/chart-controls';
|
||||
export function getFormDataFromControls(
|
||||
controlsState: ControlStateMapping,
|
||||
): QueryFormData {
|
||||
const formData: QueryFormData = {
|
||||
viz_type: 'table',
|
||||
datasource: '',
|
||||
};
|
||||
const formData = {};
|
||||
Object.keys(controlsState).forEach(controlName => {
|
||||
const control = controlsState[controlName];
|
||||
formData[controlName] = control.value;
|
||||
});
|
||||
return formData;
|
||||
return formData as QueryFormData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user