This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user