This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Save settings when they are changed (
#3743
)
master
Eugen Rochko
7 years ago
committed by
GitHub
parent
e17c2e5da5
commit
80c13bf0ef
1 changed files
with
8 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
(
)
)
;
}
;
}
;
Write
Preview
Loading…
Cancel
Save