Use snackbars instead of alerts
All checks were successful
Gitea/swiss-client/pipeline/head This commit looks good
All checks were successful
Gitea/swiss-client/pipeline/head This commit looks good
This commit is contained in:
@@ -196,11 +196,11 @@ export class TournamentManageComponent implements OnInit, OnDestroy {
|
|||||||
const availableCourts = this.getAvailableCourts();
|
const availableCourts = this.getAvailableCourts();
|
||||||
|
|
||||||
if (availableCourts.length == 0) {
|
if (availableCourts.length == 0) {
|
||||||
alert('Geen banen beschikbaar!');
|
this._snackBar.open('Geen banen beschikbaar.')
|
||||||
} else if (this.matchContainsPlayersThatArePlaying(match)) {
|
} 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)) {
|
} 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 {
|
} else {
|
||||||
this.courtSelectionDialog.open(CourtSelectionComponent, {
|
this.courtSelectionDialog.open(CourtSelectionComponent, {
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
Reference in New Issue
Block a user