The code powering m.abunchtell.com https://m.abunchtell.com
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

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