mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Renaming field to control (#2210)
This commit is contained in:
committed by
GitHub
parent
d5ba88b407
commit
1e47d6fb41
@@ -49,7 +49,7 @@ export function fetchDatasourcesFailed(error) {
|
||||
}
|
||||
|
||||
export const RESET_FIELDS = 'RESET_FIELDS';
|
||||
export function resetFields() {
|
||||
export function resetControls() {
|
||||
return { type: RESET_FIELDS };
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ export function fetchDatasourceMetadata(datasourceKey, alsoTriggerQuery = false)
|
||||
success: (data) => {
|
||||
dispatch(setDatasource(data));
|
||||
dispatch(fetchDatasourceSucceeded());
|
||||
dispatch(resetFields());
|
||||
dispatch(resetControls());
|
||||
if (alsoTriggerQuery) {
|
||||
dispatch(triggerQuery());
|
||||
}
|
||||
@@ -126,8 +126,8 @@ export function saveFaveStar(sliceId, isStarred) {
|
||||
}
|
||||
|
||||
export const SET_FIELD_VALUE = 'SET_FIELD_VALUE';
|
||||
export function setFieldValue(fieldName, value, validationErrors) {
|
||||
return { type: SET_FIELD_VALUE, fieldName, value, validationErrors };
|
||||
export function setControlValue(controlName, value, validationErrors) {
|
||||
return { type: SET_FIELD_VALUE, controlName, value, validationErrors };
|
||||
}
|
||||
|
||||
export const CHART_UPDATE_STARTED = 'CHART_UPDATE_STARTED';
|
||||
|
||||
Reference in New Issue
Block a user