Save settings when they are changed (#3743)

master
Eugen Rochko 8 years ago committed by GitHub
parent e17c2e5da5
commit 80c13bf0ef
  1. 6
      app/javascript/mastodon/actions/settings.js

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

Loading…
Cancel
Save