From cb7120973b2cd8b4c7fa3f79c58ebd0f553618de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Szczepa=C5=84ski?= Date: Sat, 7 Dec 2019 21:32:30 +0100 Subject: [PATCH] Rankingi - pliki CSV --- .../src/app/groups/ranking/ranking.component.html | 6 ++++++ FrontEnd/src/app/groups/ranking/ranking.component.ts | 12 +++++++++--- .../tests-in-group-results.component.html | 2 +- .../tests-in-group-results.component.ts | 3 +-- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/FrontEnd/src/app/groups/ranking/ranking.component.html b/FrontEnd/src/app/groups/ranking/ranking.component.html index 76b7ff6..d4432b2 100644 --- a/FrontEnd/src/app/groups/ranking/ranking.component.html +++ b/FrontEnd/src/app/groups/ranking/ranking.component.html @@ -15,6 +15,12 @@ Ranking testów +
+
+ +
+
+
{ + this.rankingSubscription = this.groupService.getGlobalRanking(this.id).subscribe(data => { this.data = data.sort((a, b) => { if (a.points > b.points) { return -1; @@ -143,7 +149,7 @@ export class RankingComponent implements OnInit, OnDestroy { showOnlyTestsRanking(): void { this.typeOfRankingToDisplay = RankingType.test; - this.rankingSubscription = this.groupService.getTestsRanking(this.group.id).subscribe(data => { + this.rankingSubscription = this.groupService.getTestsRanking(this.id).subscribe(data => { this.data = data.sort((a, b) => { if (a.points > b.points) { return -1; diff --git a/FrontEnd/src/app/groups/tests-in-group-results/tests-in-group-results.component.html b/FrontEnd/src/app/groups/tests-in-group-results/tests-in-group-results.component.html index 41b0b55..11ee87a 100644 --- a/FrontEnd/src/app/groups/tests-in-group-results/tests-in-group-results.component.html +++ b/FrontEnd/src/app/groups/tests-in-group-results/tests-in-group-results.component.html @@ -15,7 +15,7 @@

Wybrany test: {{selectedTest.title}}


- +