Wejście do testu w grupie
This commit is contained in:
parent
c1d0f977e2
commit
49e5bf13d9
@ -22,7 +22,7 @@
|
||||
Poprzednia odpowiedź była niepoprawna.
|
||||
</div>
|
||||
|
||||
<div *ngIf="!isStarted && (test['permission'] !== 'GROUP' || (test['permission'] === 'GROUP' && !test['attempted']))">
|
||||
<div *ngIf="!isStarted && (test['permission'] !== 'GROUP' || (test['permission'] === 'GROUP' && !test['attempted'] && (test['dateStart'] < now && test['dateEnd'] < now)))">
|
||||
<br /><br />
|
||||
<button class="button" (click)="start()"> <i class="far fa-play-circle"></i> Rozpocznij test</button>
|
||||
</div>
|
||||
|
@ -28,6 +28,7 @@ export class TestDetailsComponent implements OnInit, OnDestroy {
|
||||
getResultSubscription: ISubscription;
|
||||
getTestWithoutAnswersSubscription: ISubscription;
|
||||
display = false;
|
||||
now = Date.now();
|
||||
|
||||
constructor(private route: ActivatedRoute, private router: Router, private testService: TestsService,
|
||||
private routingState: RoutingStateService) { }
|
||||
|
Loading…
Reference in New Issue
Block a user