This commit is contained in:
2
TODO.txt
2
TODO.txt
@@ -32,7 +32,7 @@
|
||||
Player-registrations: oude toernooien verbergen via knop
|
||||
Onderdeel afsluiten
|
||||
Wedstrijd opgave
|
||||
Blessures
|
||||
Blessures
|
||||
Titels pagina's
|
||||
Authenticatie
|
||||
Progress indicator tijdens communicatie backend
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Invaller</mat-label>
|
||||
<mat-select [(ngModel)]="substitution.substitute">
|
||||
<mat-option>Geen</mat-option>
|
||||
@for (player of data.availablePlayers; track player.playerId) {
|
||||
<mat-option [value]="player">
|
||||
<mat-option [value]="-1">Geen</mat-option>
|
||||
@for (player of data.availablePlayers; track player.id) {
|
||||
<mat-option [value]="player.id">
|
||||
{{ player.name }}
|
||||
</mat-option>
|
||||
}
|
||||
|
||||
@@ -5,10 +5,10 @@ import {
|
||||
MatDialogActions,
|
||||
MatDialogClose,
|
||||
MatDialogContent,
|
||||
MatDialogRef, MatDialogTitle
|
||||
MatDialogRef,
|
||||
MatDialogTitle
|
||||
} from "@angular/material/dialog";
|
||||
import {MatFormField} from "@angular/material/form-field";
|
||||
import {MatLabel} from "@angular/material/form-field";
|
||||
import {MatFormField, MatLabel} from "@angular/material/form-field";
|
||||
import {MatOption, MatSelect} from "@angular/material/select";
|
||||
import {TournamentPlayer} from "../../model/tournamentPlayer";
|
||||
import {FormsModule} from "@angular/forms";
|
||||
@@ -29,7 +29,8 @@ import {Event} from "../../model/event";
|
||||
MatDialogClose,
|
||||
],
|
||||
templateUrl: './substitute-selection.component.html',
|
||||
styleUrl: './substitute-selection.component.scss'
|
||||
styleUrl: './substitute-selection.component.scss',
|
||||
standalone: true
|
||||
})
|
||||
export class SubstituteSelectionComponent {
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ export class TournamentPlayersComponent implements OnInit {
|
||||
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;
|
||||
console.log(this.tournament);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
export class TournamentPlayer {
|
||||
id: number;
|
||||
playerId: number;
|
||||
name: string;
|
||||
events: string[];
|
||||
@@ -13,5 +14,6 @@ export class TournamentPlayer {
|
||||
export class TournamentPlayerSubstitution {
|
||||
substitutionId: number;
|
||||
event: string;
|
||||
substitute: TournamentPlayer;
|
||||
// substitute: TournamentPlayer;
|
||||
substitute: number = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user