Hide inactive tournaments by default
This commit is contained in:
@@ -51,8 +51,8 @@
|
|||||||
}
|
}
|
||||||
@if (!this.showAll) {
|
@if (!this.showAll) {
|
||||||
<button mat-button (click)="this.showAll = true">
|
<button mat-button (click)="this.showAll = true">
|
||||||
<mat-icon>search</mat-icon>
|
<mat-icon>expand</mat-icon>
|
||||||
Toon oude toernooien
|
Toon inactieve toernooien
|
||||||
</button>
|
</button>
|
||||||
}
|
}
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export class PlayerRegistrationsComponent implements OnInit {
|
|||||||
if (this.showAll) {
|
if (this.showAll) {
|
||||||
return this.tournamentRegistrations;
|
return this.tournamentRegistrations;
|
||||||
} else {
|
} 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