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