You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
346 B
20 lines
346 B
8 years ago
|
import axios from 'axios';
|
||
|
|
||
|
export const SETTING_CHANGE = 'SETTING_CHANGE';
|
||
|
|
||
|
export function changeSetting(key, value) {
|
||
8 years ago
|
return {
|
||
|
type: SETTING_CHANGE,
|
||
|
key,
|
||
|
value
|
||
|
};
|
||
|
};
|
||
8 years ago
|
|
||
8 years ago
|
export function saveSettings() {
|
||
|
return (_, getState) => {
|
||
8 years ago
|
axios.put('/api/web/settings', {
|
||
|
data: getState().get('settings').toJS()
|
||
|
});
|
||
|
};
|
||
|
};
|