From 4c20821fc88237ec062ac15bc7792fdf4f835c60 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Wed, 27 Dec 2017 20:42:30 +0100 Subject: [PATCH] fix field error for highscore player --- static/src/app/models/model-interfaces.ts | 1 + static/src/app/statistic/highscore/highscore.component.ts | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/src/app/models/model-interfaces.ts b/static/src/app/models/model-interfaces.ts index 7272ac6..fce11f6 100644 --- a/static/src/app/models/model-interfaces.ts +++ b/static/src/app/models/model-interfaces.ts @@ -19,6 +19,7 @@ export interface User { export interface Player { _id?: string; + num?: string; // ranking number for high score fraction?: string; name?: string; warId?: War; diff --git a/static/src/app/statistic/highscore/highscore.component.ts b/static/src/app/statistic/highscore/highscore.component.ts index 88517db..9e5cfdd 100644 --- a/static/src/app/statistic/highscore/highscore.component.ts +++ b/static/src/app/statistic/highscore/highscore.component.ts @@ -5,6 +5,7 @@ import {CampaignService} from "../../services/logs/campaign.service"; import {Fraction} from "../../utils/fraction.enum"; import {FormControl} from "@angular/forms"; import {Observable} from "rxjs/Observable"; +import {Player} from "../../models/model-interfaces"; @Component({ @@ -21,7 +22,7 @@ export class StatisticHighScoreComponent { searchTerm = new FormControl(); - players = {}; + players : Player = {}; playersStored = {}; @@ -35,8 +36,6 @@ export class StatisticHighScoreComponent { emptyMessage = {emptyMessage: 'Keine Einträge'}; - reorderable = false; - customClasses = { sortAscending: 'glyphicon glyphicon-triangle-top', sortDescending: 'glyphicon glyphicon-triangle-bottom',