optimize highscore filter
parent
9b9e2b9fa0
commit
c2f2d72901
|
@ -17,7 +17,6 @@
|
|||
|
||||
<ngx-datatable
|
||||
[rows]="players.kill"
|
||||
[reorderable]="reorderable"
|
||||
[messages]="emptyMessage"
|
||||
[headerHeight]="cellHeight"
|
||||
[rowHeight]="cellHeight"
|
||||
|
@ -39,7 +38,6 @@
|
|||
|
||||
<ngx-datatable
|
||||
[rows]="players.death"
|
||||
[reorderable]="reorderable"
|
||||
[messages]="emptyMessage"
|
||||
[headerHeight]="cellHeight"
|
||||
[rowHeight]="cellHeight"
|
||||
|
@ -61,7 +59,6 @@
|
|||
|
||||
<ngx-datatable
|
||||
[rows]="players.respawn"
|
||||
[reorderable]="reorderable"
|
||||
[messages]="emptyMessage"
|
||||
[headerHeight]="cellHeight"
|
||||
[rowHeight]="cellHeight"
|
||||
|
@ -83,7 +80,6 @@
|
|||
|
||||
<ngx-datatable
|
||||
[rows]="players.friendlyFire"
|
||||
[reorderable]="reorderable"
|
||||
[messages]="emptyMessage"
|
||||
[headerHeight]="cellHeight"
|
||||
[rowHeight]="cellHeight"
|
||||
|
@ -105,7 +101,6 @@
|
|||
|
||||
<ngx-datatable
|
||||
[rows]="players.revive"
|
||||
[reorderable]="reorderable"
|
||||
[messages]="emptyMessage"
|
||||
[headerHeight]="cellHeight"
|
||||
[rowHeight]="cellHeight"
|
||||
|
@ -127,7 +122,6 @@
|
|||
|
||||
<ngx-datatable
|
||||
[rows]="players.flagTouch"
|
||||
[reorderable]="reorderable"
|
||||
[messages]="emptyMessage"
|
||||
[headerHeight]="cellHeight"
|
||||
[rowHeight]="cellHeight"
|
||||
|
|
|
@ -100,7 +100,7 @@ export class StatisticHighScoreComponent {
|
|||
|
||||
return this.playersStored[attribute].filter(player => {
|
||||
for (let i = 0; i < query.length; i++) {
|
||||
if (player.name.toLowerCase().includes(query[i].trim())) {
|
||||
if (query[i].trim() != '' && player.name.toLowerCase().includes(query[i].trim())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,24 +23,20 @@
|
|||
<div class="fade-in list-entry top-list-entry"
|
||||
[ngClass]="{selected : selectedWarId == campaign._id}" (click)="selectOverview(campaign._id)">
|
||||
<div style="margin: auto;">
|
||||
<div class="col-xs-3">
|
||||
<span style="margin:auto">
|
||||
<a style="font-size: 22px;">Übersicht</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fade-in list-entry top-list-entry"
|
||||
[ngClass]="{selected : selectedWarId == campaign._id + highscore}" (click)="selectHighscore(campaign._id)">
|
||||
<div style="margin: auto">
|
||||
<div class="col-xs-3">
|
||||
<span style="margin:auto">
|
||||
<a style="font-size: 22px;">Highscore</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="padding-top: 40px;">
|
||||
<div *ngFor="let war of campaign.wars">
|
||||
|
|
Loading…
Reference in New Issue