client/src/components/Navbar.js
changeset 155 e55ae84508bf
parent 154 a28361bda28c
child 161 a642639dbc07
--- a/client/src/components/Navbar.js	Mon Sep 03 20:02:14 2018 +0200
+++ b/client/src/components/Navbar.js	Wed Sep 05 12:27:52 2018 +0200
@@ -8,6 +8,7 @@
 // import logo from './logo.svg';
 import Modal from 'react-modal';
 import * as authActions from '../actions/authActions';
+import * as sessionsActions from '../actions/sessionsActions';
 import { forceSync } from '../actions/networkActions';
 import { groupSetCurrent } from '../actions/groupActions';
 import { isAuthenticated, getCurrentUser, getOnline, getCurrentGroup, getGroups } from '../selectors/authSelectors';
@@ -153,7 +154,11 @@
             </ul>
             <ul className="navbar-nav navbar-center">
                 <li className="nav-item text-secondary">
-                  <CreateSession history={this.props.history}/>
+                  <CreateSession
+                    history={this.props.history}
+                    group={this.props.currentGroup}
+                    createSession={this.props.sessionsActions.createSession}
+                  />
                 </li>
             </ul>
             <ul className="nav navbar-nav ml-auto">
@@ -208,7 +213,8 @@
   return {
     authActions: bindActionCreators(authActions, dispatch),
     networkActions: bindActionCreators({ forceSync }, dispatch),
-    groupActions: bindActionCreators({ groupSetCurrent }, dispatch)
+    groupActions: bindActionCreators({ groupSetCurrent }, dispatch),
+    sessionsActions: bindActionCreators(sessionsActions, dispatch),
   }
 }