Get sections to render when switching datasource (#1660)

* Get sections to render when switching datasource
 - Move sectionsToRender in store and use is for defaultFormData
 - Change some SelectField to FreeFormSelect according to forms.py

* Solved the css not found problem in staging

* Fixed js tests
This commit is contained in:
vera-liu
2016-11-22 14:55:32 -08:00
committed by GitHub
parent bdae570a69
commit 6b80f5bb35
7 changed files with 45 additions and 38 deletions

View File

@@ -105,8 +105,8 @@ export function changeFilterValue(filter, value) {
}
export const SET_FIELD_VALUE = 'SET_FIELD_VALUE';
export function setFieldValue(key, value, label) {
return { type: SET_FIELD_VALUE, key, value, label };
export function setFieldValue(datasource_type, key, value, label) {
return { type: SET_FIELD_VALUE, datasource_type, key, value, label };
}
export const UPDATE_CHART = 'UPDATE_CHART';