Use snackbars instead of alerts
All checks were successful
Gitea/swiss-client/pipeline/head This commit looks good

This commit is contained in:
2025-10-28 09:26:26 +01:00
parent c1fedd728b
commit 1f55acecd0

View File

@@ -196,11 +196,11 @@ export class TournamentManageComponent implements OnInit, OnDestroy {
const availableCourts = this.getAvailableCourts();
if (availableCourts.length == 0) {
alert('Geen banen beschikbaar!');
this._snackBar.open('Geen banen beschikbaar.')
} else if (this.matchContainsPlayersThatArePlaying(match)) {
alert('Deze wedstrijd bevat spelers die al aan het spelen zijn!');
this._snackBar.open('Deze wedstrijd bevat spelers die al aan het spelen zijn.')
} else if (this.matchContainsPlayersThatAreCounting(match)) {
alert('Deze wedstrijd bevat spelers die aan het tellen zijn!');
this._snackBar.open('Deze wedstrijd bevat spelers die aan het tellen zijn.')
} else {
this.courtSelectionDialog.open(CourtSelectionComponent, {
data: {