logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 80c13bf0eff3a64d1b64923c209f82f05410e657
parent: e17c2e5da5010beaefb46c8fffe35e87cb28f407
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Wed, 14 Jun 2017 18:59:02 +0200

Save settings when they are changed (#3743)


Diffstat:

Mapp/javascript/mastodon/actions/settings.js12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git 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()); }; };