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

This commit is contained in:
2025-09-11 23:43:28 +02:00
parent 929fd6b581
commit 5c846a6351
6 changed files with 146 additions and 100 deletions

View File

@@ -13,6 +13,7 @@ import {CourtSelectionComponent} from "../court-selection/court-selection.compon
import {MatDialog} from "@angular/material/dialog";
import {SubstituteSelectionComponent} from "../substitute-selection/substitute-selection.component";
import {TournamentPlayer} from "../../model/tournamentPlayer";
import {MatTab, MatTabGroup, MatTabLabel} from "@angular/material/tabs";
@Component({
selector: 'app-tournament-players',
@@ -24,7 +25,10 @@ import {TournamentPlayer} from "../../model/tournamentPlayer";
MatIconButton,
MatMenu,
MatMenuItem,
MatMenuTrigger
MatMenuTrigger,
MatTab,
MatTabGroup,
MatTabLabel
],
templateUrl: './tournament-players.component.html',
standalone: true,
@@ -74,7 +78,7 @@ export class TournamentPlayersComponent implements OnInit {
}).afterClosed().subscribe(result => {
if (result != undefined) {
console.log('Substitute selected for ' + player.name + ', namely: ' + result.substitute.name);
this.tournamentService.startMatch(this.tournament.id, match.id, result.court, result.counter.playerId).subscribe(data => {
this.tournamentService.playerSubstitute(this.tournament.id, player.playerId, result.substitute.playerId).subscribe(data => {
this.tournament = data;
});
}