Add chart select label names

pull/51/head
HardiReady 2019-02-07 21:44:25 +01:00
parent b99825b01a
commit 2d64c32598
3 changed files with 19 additions and 7 deletions

View File

@ -36,11 +36,11 @@ export class ServerStatsComponent implements OnInit, OnChanges {
tmpFlagCaptureData;
readonly labels = {
points: 'stats.fraction.select.points',
budget: 'stats.fraction.select.budget',
kill: 'stats.fraction.select.kills',
friendlyFire: 'stats.fraction.select.friendly.fire',
vehicle: 'stats.fraction.select.vehicle.kills',
singleAvg: 'stats.performance.select.single.avg',
singleMin: 'stats.performance.select.single.min',
avgTimeline: 'stats.performance.select.timeline.avg',
minTimeline: 'stats.performance.select.timeline.min',
serverFps: 'stats.performance.select.timeline.server',
};
readonly labelsAsString = Object.keys(this.labels)
.map((key) => this.labels[key]);
@ -62,7 +62,7 @@ export class ServerStatsComponent implements OnInit, OnChanges {
}
ngOnInit() {
this.setLineChartLabel(this.labels.points);
this.setLineChartLabel(this.labels.singleAvg);
}
ngOnChanges(changes: SimpleChanges) {
@ -75,7 +75,7 @@ export class ServerStatsComponent implements OnInit, OnChanges {
flag: false
};
Object.assign(this, [this.lineChartData]);
this.activeChartSelect = this.labels.points;
this.activeChartSelect = this.labels.singleAvg;
this.startDateObj = new Date(this.war.date);
this.startDateObj.setHours(0);

View File

@ -28,6 +28,12 @@
"stats.fraction.select.stabilize": "Stabilisiert",
"stats.fraction.select.flag": "Flaggenbesitz",
"stats.performance.select.single.avg": "Spieler FPS Durchschnitt",
"stats.performance.select.single.min": "Spieler FPS Minimum",
"stats.performance.select.timeline.avg": "Verlauf Gesamt FPS",
"stats.performance.select.timeline.min": "Verlauf Minimum FPS",
"stats.performance.select.timeline.server": "Server FPS",
"stats.player.detail.headline": "Kampagnendetails - {{name}}",
"stats.player.detail.button.back": "Zurück",
"stats.player.detail.kill.death.ratio": "Kill/Death",

View File

@ -36,6 +36,12 @@
"stats.fraction.select.stabilize": "Stabilized",
"stats.fraction.select.flag": "Flag Possession",
"stats.performance.select.single.avg": "Player FPS Average",
"stats.performance.select.single.min": "Player FPS Minimum",
"stats.performance.select.timeline.avg": "Timeline Overall FPS",
"stats.performance.select.timeline.min": "Timeline Minimum FPS",
"stats.performance.select.timeline.server": "Server FPS",
"stats.player.detail.headline": "Campaign Details - {{name}}",
"stats.player.detail.button.back": "Back",
"stats.player.detail.kill.death.ratio": "Kill/Death",