]> cat aescling's git repositories - mastodon.git/blob - app/javascript/mastodon/actions/settings.js
Improve eslint rules (#3147)
[mastodon.git] / app / javascript / mastodon / actions / settings.js
1 import axios from 'axios';
2
3 export const SETTING_CHANGE = 'SETTING_CHANGE';
4
5 export function changeSetting(key, value) {
6 return {
7 type: SETTING_CHANGE,
8 key,
9 value,
10 };
11 };
12
13 export function saveSettings() {
14 return (_, getState) => {
15 axios.put('/api/web/settings', {
16 data: getState().get('settings').toJS(),
17 });
18 };
19 };
This page took 0.07913 seconds and 5 git commands to generate.