File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class CLI extends React.Component {
2222 token = { authToken }
2323 loading = { isLoadingCLI }
2424 username = { user && user . username }
25- signIn = { this . props . signals . signInClicked }
25+ signIn = { this . props . signals . signInCliClicked }
2626 />
2727 </ Container >
2828 ) ;
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export default Module({
6565 modalOpened : sequences . openModal ,
6666 modalClosed : sequences . closeModal ,
6767 signInClicked : sequences . signIn ,
68+ signInCliClicked : sequences . signInCli ,
6869 userMenuOpened : sequences . openUserMenu ,
6970 userMenuClosed : sequences . closeUserMenu ,
7071 notificationAdded : sequences . addNotification ,
Original file line number Diff line number Diff line change @@ -224,6 +224,15 @@ export const signInGithub = [
224224 set ( state `isLoadingGithub` , false ) ,
225225] ;
226226
227+ export const signInCli = [
228+ signIn ,
229+ when ( state `user` ) ,
230+ {
231+ true : [ authorize ] ,
232+ false : [ ] ,
233+ } ,
234+ ] ;
235+
227236export const loadSearch = factories . withLoadApp ( [ ] ) ;
228237
229238export const loadTerms = factories . withLoadApp ( [ ] ) ;
You can’t perform that action at this time.
0 commit comments