From: Eugen Rochko Date: Wed, 14 Jun 2017 16:59:02 +0000 (+0200) Subject: Save settings when they are changed (#3743) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=80c13bf0eff3a64d1b64923c209f82f05410e657;p=mastodon.git Save settings when they are changed (#3743) --- diff --git a/app/javascript/mastodon/actions/settings.js b/app/javascript/mastodon/actions/settings.js index 2d260b84c..f9d304c96 100644 --- a/app/javascript/mastodon/actions/settings.js +++ b/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 { - type: SETTING_CHANGE, - key, - value, + return dispatch => { + dispatch({ + type: SETTING_CHANGE, + key, + value, + }); + + dispatch(saveSettings()); }; };