Invallers
All checks were successful
Gitea/swiss-client/pipeline/head This commit looks good

This commit is contained in:
2025-09-17 08:59:02 +02:00
parent 5c846a6351
commit 02b884bbcf
2 changed files with 8 additions and 4 deletions

View File

@@ -77,8 +77,11 @@ export class TournamentPlayersComponent implements OnInit {
minHeight: '250px'
}).afterClosed().subscribe(result => {
if (result != undefined) {
console.log('Substitute selected for ' + player.name + ', namely: ' + result.substitute.name);
this.tournamentService.playerSubstitute(this.tournament.id, player.playerId, result.substitute.playerId).subscribe(data => {
console.log('Substitutes selected for ' + player.name + ': ');
console.log(result.substitutions);
console.log(result.substitutions[0].event + ': ' + result.substitutions[0].substitute);
console.log(result.substitutions[1].event + ': ' + result.substitutions[1].substitute);
this.tournamentService.playerSubstitute(this.tournament.id, player.playerId, result.substitutions).subscribe(data => {
this.tournament = data;
});
}