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.

17 lines
330 B

  1. import axios from 'axios';
  2. export const SETTING_CHANGE = 'SETTING_CHANGE';
  3. export function changeSetting(key, value) {
  4. return (dispatch, getState) => {
  5. dispatch({
  6. type: SETTING_CHANGE,
  7. key,
  8. value
  9. });
  10. axios.put('/api/web/settings', {
  11. data: getState().get('settings').toJS()
  12. });
  13. };
  14. };