Hide inactive tournaments by default
This commit is contained in:
1 parent
26c0c1a2da
commit
1da6246d9a
2 files changed
+3
-3
No files matched your search
@@ -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