From 5274208b60c8b260ca07cc848797f49ac990cefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Stawujak?= Date: Wed, 2 Jan 2019 14:10:18 +0100 Subject: [PATCH] SKE-59 add solve competition button --- .../competition-detail/competition-detail.component.html | 3 +++ .../app/competition-detail/competition-detail.component.ts | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/SystemKonkursow/4.2.1/angular/src/app/competition-detail/competition-detail.component.html b/SystemKonkursow/4.2.1/angular/src/app/competition-detail/competition-detail.component.html index bb75521..371a407 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/competition-detail/competition-detail.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/competition-detail/competition-detail.component.html @@ -7,6 +7,9 @@
Nagrody:
{{competition.prize}}
+
\ No newline at end of file diff --git a/SystemKonkursow/4.2.1/angular/src/app/competition-detail/competition-detail.component.ts b/SystemKonkursow/4.2.1/angular/src/app/competition-detail/competition-detail.component.ts index 94f053a..e21a1b4 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/competition-detail/competition-detail.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/competition-detail/competition-detail.component.ts @@ -20,6 +20,8 @@ export class CompetitionDetailComponent extends AppComponentBase implements OnIn public competition: CompetitionDto = null; public competitionDetailAreaId: string = 'competition-detail-area'; + public mode = 'detail'; + constructor( injector: Injector, private route: ActivatedRoute, @@ -49,6 +51,11 @@ export class CompetitionDetailComponent extends AppComponentBase implements OnIn }); } + public solveCompetition(): void { + console.log('Solve Competition'); + this.mode = 'quiz'; + } + public ngOnDestroy() { if (this.paramSubscription) { this.paramSubscription.unsubscribe();