save settings on the fly
This commit is contained in:
parent
6669f6b6ef
commit
805d1395fc
5 changed files with 45 additions and 27 deletions
|
@ -1,6 +1,7 @@
|
|||
import actions from 'settings/actions';
|
||||
|
||||
const defaultState = {
|
||||
source: '',
|
||||
json: '',
|
||||
value: {}
|
||||
};
|
||||
|
@ -9,6 +10,7 @@ export default function reducer(state = defaultState, action = {}) {
|
|||
switch (action.type) {
|
||||
case actions.SETTING_SET_SETTINGS:
|
||||
return {
|
||||
source: action.source,
|
||||
json: action.json,
|
||||
value: action.value,
|
||||
};
|
||||
|
|
Reference in a new issue