Hide inactive tournaments by default

This commit is contained in:
2025-08-15 09:35:18 +02:00
parent 26c0c1a2da
commit 1da6246d9a
2 changed files with 3 additions and 3 deletions

View File

@@ -51,8 +51,8 @@
}
@if (!this.showAll) {
<button mat-button (click)="this.showAll = true">
<mat-icon>search</mat-icon>
Toon oude toernooien
<mat-icon>expand</mat-icon>
Toon inactieve toernooien
</button>
}
</mat-card-content>

View File

@@ -112,7 +112,7 @@ export class PlayerRegistrationsComponent implements OnInit {
if (this.showAll) {
return this.tournamentRegistrations;
} else {
return this.tournamentRegistrations.filter(t => (t.status == 'UPCOMING' || t.status == 'ONGOING'));
return this.tournamentRegistrations.filter(t => t.active);
}
}