This repository was archived by the owner on Dec 11, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,11 @@ AppStore
189
189
}],
190
190
timestamp: number
191
191
}
192
+ },
193
+ about: {
194
+ newtab: {
195
+ gridLayout: string // 'small', 'medium', 'large'
196
+ }
192
197
}
193
198
}
194
199
```
Original file line number Diff line number Diff line change @@ -124,6 +124,13 @@ const AboutActions = {
124
124
ipc . send ( messages . SET_CLIPBOARD , text )
125
125
} ,
126
126
127
+ setNewTabDetail : function ( newTabPageDetail ) {
128
+ AboutActions . dispatchAction ( {
129
+ actionType : AppConstants . APP_CHANGE_NEW_TAB_DETAIL ,
130
+ newTabPageDetail
131
+ } )
132
+ } ,
133
+
127
134
deletePassword : function ( password ) {
128
135
AboutActions . dispatchAction ( {
129
136
actionType : AppConstants . APP_REMOVE_PASSWORD ,
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ const AppConstants = {
43
43
APP_SET_LOGIN_REQUIRED_DETAIL : _ ,
44
44
APP_SET_LOGIN_RESPONSE_DETAIL : _ ,
45
45
APP_WINDOW_BLURRED : _ ,
46
- APP_IDLE_STATE_CHANGED : _
46
+ APP_IDLE_STATE_CHANGED : _ ,
47
+ APP_CHANGE_NEW_TAB_DETAIL : _
47
48
}
48
49
49
50
module . exports = mapValuesByKeys ( AppConstants )
Original file line number Diff line number Diff line change @@ -396,6 +396,9 @@ const handleAppAction = (action) => {
396
396
case AppConstants . APP_CLEAR_PASSWORDS :
397
397
appState = appState . set ( 'passwords' , new Immutable . List ( ) )
398
398
break
399
+ case AppConstants . APP_CHANGE_NEW_TAB_DETAIL :
400
+ appState = appState . setIn ( [ 'about' , 'newtab' ] , action . newTabPageDetail )
401
+ break
399
402
case AppConstants . APP_ADD_SITE :
400
403
const oldSiteSize = appState . get ( 'sites' ) . size
401
404
if ( action . siteDetail . constructor === Immutable . List ) {
You can’t perform that action at this time.
0 commit comments