Skip to content

Commit

Permalink
set active move when setting active submission (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-tspencer authored May 24, 2024
1 parent 42fb31f commit 48e05f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/home-app/home-app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ export class HomeAppComponent implements OnDestroy, OnInit {
this.teamDataService.setActive(teamId);
this.uiDataService.setTeam(this.selectedEvaluationId, teamId);
this.submissionDataService.setActive('');
this.moveDataService.setActive('');
this.submissionDataService.unload();
this.submissionDataService.loadByEvaluationTeam(this.selectedEvaluationId, teamId);
}
Expand Down Expand Up @@ -508,6 +509,8 @@ export class HomeAppComponent implements OnDestroy, OnInit {
}
}
this.submissionDataService.setActive(submission.id);
const activeMove = this.sortedMoveList.find(m => +m.moveNumber === +submission.moveNumber);
this.moveDataService.setActive(activeMove.id);
}

selectDisplayedSubmission(selection: string) {
Expand Down

0 comments on commit 48e05f1

Please sign in to comment.