File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,6 +340,9 @@ public function handleGetMemberSelections(SS_HTTPRequest $r)
340340 return $ this ->validationError (sprintf ('Category id %s not found! ' , $ categoryID ));
341341 }
342342
343+ $ results ['accepted_count ' ] = $ category ->SessionCount ;
344+ $ results ['alternate_count ' ] = $ category ->AlternateCount ;
345+
343346 $ summitID = (int ) Summit::get_active ()->ID ;
344347 if (intval ($ category ->SummitID ) !== $ summitID ) {
345348 return $ this ->validationError (sprintf ('Category id %s does not belong to current summit! ' , $ categoryID ));
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ import Bounce from '../ui/loaders/Bounce';
1010class Selections extends React . Component {
1111
1212 render ( ) {
13- if ( ! this . props . lists ) {
13+ let { acceptedCount, alternateCount} = this . props ;
14+
15+ if ( ! this . props . lists ) {
1416 return < Bounce />
1517 }
1618
@@ -27,6 +29,9 @@ class Selections extends React.Component {
2729 < div className = "col-md-3" >
2830 < strong > Category</ strong > : < CategoryNavigator />
2931 </ div >
32+ < div className = "col-md-3" >
33+ < strong > Count</ strong > : { acceptedCount } / { alternateCount }
34+ </ div >
3035 </ div >
3136 </ div >
3237 { this . props . category &&
@@ -43,7 +48,9 @@ export default connect(
4348 return {
4449 lists : state . lists . results ,
4550 category : state . routing . locationBeforeTransitions . query . category ,
46- list_class : state . routing . locationBeforeTransitions . query . list_class
51+ list_class : state . routing . locationBeforeTransitions . query . list_class ,
52+ acceptedCount : state . lists . acceptedCount ,
53+ alternateCount : state . lists . alternateCount
4754 } ;
4855 } ,
4956 dispatch => ( {
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ export const lists = function (
55 results : null ,
66 loading : false ,
77 showDrawer : false ,
8+ acceptedCount : 0 ,
9+ alternateCount : 0
810 } ,
911 action = { } ) {
1012
@@ -23,6 +25,8 @@ export const lists = function (
2325 return ! a . is_group ;
2426 } )
2527 ] ,
28+ acceptedCount : action . payload . response . accepted_count ,
29+ alternateCount :action . payload . response . alternate_count ,
2630 loading : false
2731 } ;
2832
You can’t perform that action at this time.
0 commit comments