File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -978,6 +978,13 @@ angular.module('avBooth')
978
978
return futureResult . promise ;
979
979
}
980
980
981
+ function setParentElection ( ) {
982
+ if ( ! scope . parentElection ) {
983
+ return ;
984
+ }
985
+ scope . election = scope . parentElection ;
986
+ }
987
+
981
988
function retrieveElectionConfig ( electionId ) {
982
989
if ( scope . state === stateEnum . errorScreen ) {
983
990
return ;
@@ -1366,6 +1373,7 @@ angular.module('avBooth')
1366
1373
getSessionEndTime : getSessionEndTime ,
1367
1374
getSessionStartTime : getSessionStartTime ,
1368
1375
isStateCompatibleWithCountdown : isStateCompatibleWithCountdown ,
1376
+ setParentElection : setParentElection ,
1369
1377
1370
1378
// stateData stores information used by the directive being shown.
1371
1379
// Its content depends on the current state.
Original file line number Diff line number Diff line change @@ -574,6 +574,7 @@ angular.module('avBooth')
574
574
// redirects to next election
575
575
scope . goToNextElection = function ( ) {
576
576
scope . setState ( scope . stateEnum . electionChooserScreen , { } ) ;
577
+ scope . setParentElection ( ) ;
577
578
} ;
578
579
579
580
scope . skippedCount = skippedCount ( ) ;
You can’t perform that action at this time.
0 commit comments