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