Save settings when they are changed (#3743)

th-downstream
Eugen Rochko 8 years ago committed by GitHub
parent 6f8f401ea1
commit afefb364cb

@ -3,10 +3,14 @@ import axios from 'axios';
export const SETTING_CHANGE = 'SETTING_CHANGE';
export function changeSetting(key, value) {
return {
type: SETTING_CHANGE,
key,
value,
return dispatch => {
dispatch({
type: SETTING_CHANGE,
key,
value,
});
dispatch(saveSettings());
};
};

Loading…
Cancel
Save