Persist UI settings, add missing localizations for German
This commit is contained in:
parent
23ebf60b95
commit
75f80bef10
25 changed files with 305 additions and 67 deletions
17
app/assets/javascripts/components/actions/settings.jsx
Normal file
17
app/assets/javascripts/components/actions/settings.jsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import axios from 'axios';
|
||||
|
||||
export const SETTING_CHANGE = 'SETTING_CHANGE';
|
||||
|
||||
export function changeSetting(key, value) {
|
||||
return (dispatch, getState) => {
|
||||
dispatch({
|
||||
type: SETTING_CHANGE,
|
||||
key,
|
||||
value
|
||||
});
|
||||
|
||||
axios.put('/api/web/settings', {
|
||||
data: getState().get('settings').toJS()
|
||||
});
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue