Release v1.6.7 - Highscore Page #22

Merged
hardi merged 1 commits from release/1.6.7 into master 2017-12-27 20:37:45 +01:00
3 changed files with 1 additions and 11 deletions

View File

@ -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"

View File

@ -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;
} }
} }

View File

@ -23,24 +23,20 @@
<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>
<div style="padding-top: 40px;"> <div style="padding-top: 40px;">
<div *ngFor="let war of campaign.wars"> <div *ngFor="let war of campaign.wars">