diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-15 15:10:06 -0700 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-15 15:10:06 -0700 |
commit | bc4202d00b2956b630a7609fb74f31c04e9275f3 (patch) | |
tree | c56bc43d1df6f67168b4d2f82328bd1c3ca5309d /app/javascript/glitch/reducers | |
parent | 09cfc079b0958c42fe619e2d88c3f9fd1d7c7900 (diff) |
Ported updates from #64
Diffstat (limited to 'app/javascript/glitch/reducers')
-rw-r--r-- | app/javascript/glitch/reducers/local_settings.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/javascript/glitch/reducers/local_settings.js b/app/javascript/glitch/reducers/local_settings.js index 79ff96307..776dcead7 100644 --- a/app/javascript/glitch/reducers/local_settings.js +++ b/app/javascript/glitch/reducers/local_settings.js @@ -28,7 +28,7 @@ Imports */ // Package imports // -import Immutable from 'immutable'; +import { Map as ImmutableMap } from 'immutable'; // Mastodon imports // import { STORE_HYDRATE } from '../../mastodon/actions/store'; @@ -48,27 +48,27 @@ These are only used if no previously-saved values exist. */ -const initialState = Immutable.fromJS({ +const initialState = ImmutableMap({ layout : 'auto', stretch : true, - collapsed : { + collapsed : ImmutableMap({ enabled : true, - auto : { + auto : ImmutableMap({ all : false, notifications : true, lengthy : true, replies : false, media : false, - }, - backgrounds : { + }), + backgrounds : ImmutableMap({ user_backgrounds : false, preview_images : false, - }, - }, - media : { + }), + }), + media : ImmutableMap({ letterbox : true, fullwidth : true, - }, + }), }); /* * * * */ |