Home column filters

This commit is contained in:
Eugen Rochko
2017-01-10 17:25:10 +01:00
parent 1e9d2c4b1e
commit 312c51b5c8
16 changed files with 455 additions and 143 deletions

View File

@ -3,13 +3,15 @@ import axios from 'axios';
export const SETTING_CHANGE = 'SETTING_CHANGE';
export function changeSetting(key, value) {
return (dispatch, getState) => {
dispatch({
type: SETTING_CHANGE,
key,
value
});
return {
type: SETTING_CHANGE,
key,
value
};
};
export function saveSettings() {
return (_, getState) => {
axios.put('/api/web/settings', {
data: getState().get('settings').toJS()
});