mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Save settings when they are changed (#3743)
This commit is contained in:
parent
e17c2e5da5
commit
80c13bf0ef
@ -3,10 +3,14 @@ import axios from 'axios';
|
|||||||
export const SETTING_CHANGE = 'SETTING_CHANGE';
|
export const SETTING_CHANGE = 'SETTING_CHANGE';
|
||||||
|
|
||||||
export function changeSetting(key, value) {
|
export function changeSetting(key, value) {
|
||||||
return {
|
return dispatch => {
|
||||||
type: SETTING_CHANGE,
|
dispatch({
|
||||||
key,
|
type: SETTING_CHANGE,
|
||||||
value,
|
key,
|
||||||
|
value,
|
||||||
|
});
|
||||||
|
|
||||||
|
dispatch(saveSettings());
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user