1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Save settings when they are changed (#3743)

This commit is contained in:
Eugen Rochko 2017-06-14 18:59:02 +02:00 committed by GitHub
parent e17c2e5da5
commit 80c13bf0ef

View file

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