Browse Source

Save settings when they are changed (#3743)

master
Eugen Rochko 7 years ago
committed by GitHub
parent
commit
80c13bf0ef
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      app/javascript/mastodon/actions/settings.js

+ 8
- 4
app/javascript/mastodon/actions/settings.js 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());
};
};

Loading…
Cancel
Save